JAVA程式設計學習
2009年3月23日 星期一
Lab 12 : Fibonacci
List the first 100 numbers and the ratio of
a number to its previous number, such as
1
/
1
= 1,
2
/
1
= 2,
3
/
2
= 1·5,
5
/
3
= 1·666...,
8
/
5
= 1·6,
13
/
8
= 1·625,
21
/
13
= 1·61538....
Want to know more about
Fibonacci number
最後答案會趨近於1.618033988749895
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言