I'm recently learning bash and confused when a variable would add
while [ $i -le 10 ]
echo "$n * $i = `expr $i \* $n`"
i=`expr $i + 1`
$ substitutes the variable. Writing
$i will insert the value of
i, no matter where you write it.
If you want to assign to the variable, that obviously makes no sense.