Problem 7

2.5

2 votes
Problem

The penultimate task involved the calculation of the typical Fibonacci sequence up to the nth term.

Input – single integer n

Output – Fibonacci sequence up to the nth term, all terms on a new line

Sample Input
5
Sample Output
1
1
2
3
5
Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?