## Program displays the Fibonacci series of numbers using a loop

Fibonacci sequence is the sequence obtained from the sum of two terms previously.

eg, 1, 1, 2, 3, 5, 8, 13

terms to – n of the Fibonacci sequence is obtained by the formula:

Fibonacci (n) = Fibonacci (n-1) + fibonacci (n-2)

with initial values for n = 1 and n = 2 valuable 1.

The following is the ouput program using c + + programming :

and program details can be downloaded **here**

Advertisements