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

PROGRAMMING:Fibonacci sequence

Luz5年前 (2021-05-10)题库356
The general formula of Fibonacci sequence is as follows:
![ 3333333333.png](~/ca64eb62-b3d8-4f18-ba2c-61783a4d05d5.png)
The program reads in integer n (40 > n > 2) and outputs the first n items of Fibonacci sequence.
###Input example:
```in
five
```
###Output example:
```out
1,1,2,3,5
```
###Input example:
```in
ten
```
###Output example:
```out
1,1,2,3,5,8,13,21,34,55
```







answer:If there is no answer, please comment