Search

bash script to generate fibonacci series

Here is a linux bash script to generate fibonacci series .Fibonacci series is a sequence of numbers where each number is generated by addition of the previous two numbers in the sequence.

The script asks the user to provide how many numbers of the series have to be generated and prints out the numbers in the fibonacci series as many requested by the user.



Save the script as fibonacci,sh , open the terminal and run the script using



No comments:

Post a Comment