Create a Shell Scripts For Display Fibo Series in Linux Shell Scripts



echo "Enter Number For Print Fibo Serice";
read no

a=0
b=1
c=1

for ((i=1;i<=$no;i++))
do
    ((c=$a+$b));
    a=$b;
    b=$c;
    c=$a;
    printf "$c,";
   
done

Create a Shell Scripts For Display Fibo Series in Linux Shell Scripts Create a Shell Scripts For Display Fibo Series in Linux Shell Scripts Reviewed by Unknown on 23:14 Rating: 5

No comments:

Powered by Blogger.