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

PROGRAMMING:The nth term of Fibonacci sequence

Luz5年前 (2021-05-10)题库372
Output the nth term of Fibonacci sequence (assuming n < 1000). Fibonacci sequence: 0, 1, 1, 2, 3, 5, 8, 13
###Input format:
A positive integer n, representing the nth term of Fibonacci sequence.
###Output format:
The value of the nth term of Fibonacci sequence
###Input example:
Here is a set of inputs. For example:
```in
one
```
###Output example:
The corresponding output is given here. For example:
```out
0
```







answer:If there is no answer, please comment