2011年4月8日 星期五

[Project Euler]Problem 2 - By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.

先建一個小於等於四百萬的費氏數列表,
然後把每一個值是偶數的項都加起來即可。

[Ruby]

沒有留言:

張貼留言