Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 617 Bytes

README.md

File metadata and controls

15 lines (14 loc) · 617 Bytes

#Judy 5/3/2020

Fibonacci

============

实现Fibonacci数列:要求(以java为例)如下:
函数名Fibonacci.of()
of是一个静态方法,入参是int,返回值是int
参数从1开始,各参考值如下:
Fibonacci.of(1) == 1
Fibonacci.of(2) == 1
Fibonacci.of(3) == 2
Fibonacci.of(4) == 3
Fibonacci.of(5) == 5
...
在main()函数用循环打印1-200的Fibonacci数列