1. N-th Fibonacci number
- Points
- 25
- Type
- ConsoleIO
Read a number
n (0 ≤ n ≤ 40). Print the n-th Fibonacci number, where F(0) = 0 and F(1) = 1.Examples
| Input | Output |
|---|---|
0 |
0
|
1 |
1
|
10 |
55
|
20 |
hidden |
Your code is saved locally until you submit a solution.