This is the famous fibonacci program. You will enter the number of sequence and then output the total.
Fibonacci sequencegoes like this...
To know the next number in the fibonacci, you will just add the last two numbers...
ex.
1 + 1 = 2
that's why it is 1 1 2
same goes in 3 + 5 = 8
that's why it is 1 1 2 3 5 8
see the program run, download the .exe here
Fibonacci
Friday, June 19, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment