In this tutorial, we will print fibonacci series.
According to wikipedia:
In mathematics, the Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and characterized by the fact that every number after the first two is the sum of the two preceding ones:[1][2]
0,1,1,2,3,5,8,13,21,34,55,89,144..
Here is simple program to print fibonacci series..
Output:
Enter length of series you want to print ? 7
Fibonacci Series : 0 1 1 2 3 5 8
Fibonacci Series : 0 1 1 2 3 5 8
That’s all about printing fibonacci series.
Was this post helpful?
Let us know if this post was helpful. Feedbacks are monitored on daily basis. Please do provide feedback as that\'s the only way to improve.