Fibonacci Series in Bash
Fibonacci Series in Bash
The Fibonacci numbers are the numbers in the following integer sequence .
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ……..
Approach As we know F0 = 0 and F1 = 1 and the next value comes by adding
the previous two values .
FN = FN-1 + FN-2
Loop to Nth number adding previous two numbers.
Input :
45667
Output :
Number is NOT palindrome
num=545