资 源 简 介
程序能够接收1~100之间的整数,根据接收的数值,计算其Fibonacci数,在屏幕上输出其值。Fibonacci数列的定义如下:
Fib(1)=1
Fib(2)=1
Fib(n)=fib(n-2)+fib(n-1)
-Program can receive an integer between 1 to 100, according to the received value, to calculate the Fibonacci number, the screen output of its value. Fibonacci sequence is defined as follows: Fib (1) = 1 Fib (2) = 1 Fib (n) = fib (n-2)+ fib (n-1)