Let's take Input from user as `9`. So the Fibonacci series upto 9 is as follow's `0,1,1,2,3,5,8,13,21`

**Expected Output :** `0,*,1,*,3,*,8,*,21`

**Below is the following code which i work around to implement logic**

```
UserInput=9 
a=0 
b=1 

echo "The Fibonacci series is  : "

for (( i=0; i<UserInput; i++ )) 
do
    if [ $i -eq 2 ]
    then 
        echo -n "$a "
        sn=$((a + b)) 
        a=$b 
        b=$sn 
    fi 
done

```