C++ Program to Print Fibonacci Series

Series in the form of 0,1,1,2,3,5,8,13,21…….. is called the Fibonacci Series. To find this kind of series we add two previous digits to get the next one.

Here is the logic to generate Fibonacci Series.

next=first+second;

first=second;

second=next;

That’s it…..

C++ Program to Print Fibonacci Series

Output:

C++ Program to Print Fibonacci Series

Leave a Reply

Your email address will not be published. Required fields are marked *