PDA

View Full Version : 8 C "If Program please make this solution ....



nada naser
2013-12-30, 04:26 PM
Fibonacci numbers are defined recursively as follows:
F1 = 1, F2 = 1, and
Fn = Fn - 1 + Fn - 2 for n> 2
Write a program that will generate and print the nth Fibonacci number.