Skip to content

Instantly share code, notes, and snippets.

@adzo261
Created November 2, 2018 15:19
Show Gist options
  • Save adzo261/ed8812e08e32f7f0d24d723e8993e95f to your computer and use it in GitHub Desktop.
Save adzo261/ed8812e08e32f7f0d24d723e8993e95f to your computer and use it in GitHub Desktop.
a=1
b=2
sum=0
while a<4000000:
a,b=b,a+b
if a%2==0:
sum+=a
print(sum)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment