题目描述

Write a program to print Fibonacci series up to N terms using loop.
Example
Input
Input number of terms: 10
Output
Fibonacci series:
0, 1, 1, 2, 3, 5, 8, 13, 21, 34


输入格式

The input consists of n (0<n<100) lines.
Each line consists of the number of terms(ranges from 1 to 20).
The last line of input consists of Int(-1).


输出格式


样例数据

输入

3
10
-1

输出

0,1,1
0,1,1,2,3,5,8,13,21,34

备注


操作

评测记录

优秀代码

信息

时间限制: 1s
内存限制: 128MB
评测模式: Normal

题解