-->
当前位置:首页 > 题库

PROGRAMMING:Fibonacci

Luz5年前 (2021-05-10)题库358
Fibonacci sequence refers to such a sequence: 0,1,1,2,3,5,8,..., starting from the third term, each term is equal to the sum of the first two terms. Find the first n terms of Fibonacci sequence.
###Input format:
Enter a value of n (n > = 3).
###Output format:
Output the first n terms of Fibonacci sequence.
###Input example:
Here is a set of inputs. For example:
```in
six
```
###Output example:
The corresponding output is given here. For example:
```out
0,1,1,2,3,5
```







answer:If there is no answer, please comment