I am writing a bash script for fibonacci which is not printing the value after 0 1 1 . It is not printing "2" after 0 1 1. The code is given below.
echo "enter the number"
read n
a=0
b=1
c=0
echo $a
echo $b
while [ $b -le $n ]
do
c=`expr $a + $b`
echo $c
b=`expr $b + 1`
a=$b
b=$c
done