标签:
最基本的解法
sum = 0; n = 1; While[Fibonacci[n] <= 4000000, If[EvenQ[Fibonacci[n]], sum = Fibonacci[n] + sum]; n++] sum
Project Euler--No.2
原文地址:http://www.cnblogs.com/shouchengcheng/p/4256774.html