The Fibonacci Sequence is the series of numbers:
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ...
The next number is found by adding up the two numbers before it:
The recursion formula is : f(x) = f(x-1)+f(x-2)
Given a integer n, your task is to print out the first nFibonacci numbers
an integer n
1<n<50
a list of integers separated by a space represent the first n Fibonacci numbers
5
0 1 1 2 3
7
0 1 1 2 3 5 8
10
0 1 1 2 3 5 8 13 21 34
ID | User | Problem | Subject | Hit | Post Date |
1662 |
1650139-x@g....
(P6D33溫庭昊)
|
a104 | 69 | 2024-08-03 18:16 |