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.
Input Format
n
Output Format
0 1 1 2 3 5 8 .. first n fibonaccis
Constraints
1 <= n < 40
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
10
Output
0 1 1 2 3 5 8 13 21 34