Created
April 28, 2013 01:10
-
-
Save ganadist/5475395 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n1 = 0 | |
n2 = 1 | |
MAX = 400 * 10000 | |
sum = 0 | |
while n2 <= MAX: | |
n3 = n1 + n2 | |
if n3 % 2 == 0: | |
sum += n3 | |
n1, n2 = n2, n3 | |
print sum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment