Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 313 Bytes

File metadata and controls

32 lines (27 loc) · 313 Bytes

Print Fibonacci Numbers Till N

Easy


  1. You've to print first n fibonacci numbers.
  2. Take as input "n", the count of fibonacci numbers to print.
  3. Print first n fibonacci numbers.

Sample Input:

10

Sample Output:

0
1
1
2
3
5
8
13
21
34

Constraints:

1 <= n < 40