根据所接收的值,程序可以在1到100之间接收一个整数…
代码说明:
程序能够接收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)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!