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

PROGRAMMING:Fibonacci sequence

Luz5年前 (2021-05-10)题库456
Fibonacci sequence is such a sequence: 1, 1, 2, 3, 5, 8, 13, 21,..., the first two terms of the sequence are 1, starting from the second term, each term is equal to the sum of the first two terms.
Program the first 20 items of fibinacci sequence. Five in a row.
###Input example:
```in
```
###Output example:
```out
1 1 2 3 5
8 13 21 34 55
89 144 233 377 610
987 1597 2584 4181 6765
```







answer:If there is no answer, please comment