0

Fibonacci series

write a code to take in a value n and print the first fibonacci numbers upto the value n where; the first number F1 is 1 the second F2 is 1 the Kth number (where k>2 ) is defined as the (K-1)th fibonacci number and (K-2)th fibonacci number... that is Fk=Fk-2 + Fk-1 For example if n=7, it displays the first seven members of the fibonacci series

21st Oct 2017, 5:40 PM
Argwings Kipchirchir
Argwings Kipchirchir - avatar
2 Answers
21st Oct 2017, 7:08 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 3
your friends posted this homwork a few days ago. The minimum effort should be using the search button.
21st Oct 2017, 6:01 PM
Oma Falk
Oma Falk - avatar