I am new to bash scripting. i wrote a simple code to find the average of all the multiples of ten from 10 to 190 inclusive. The code is:
#!/bin/bash
a=10
ans=0
while[ $a -le 190 ]
do
ans=`expr $a + $ans'
a=`expr $a + 10'
done
echo "$ans"
So what is wrong in this program?