Write a script to print the first 10 elemenst of Fibonacci series.

#!/bin/sh

a=1

b=1

echo $a

echo $b

for I in 1 2 3 4 5 6 7 8

do

c=a

b=$a

b=$(($a+$c))

echo $b

done

Category: Shell Scripting Interview Questions.