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

~ by nuryanisofia on April 14, 2012.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: