Skip to content

Instantly share code, notes, and snippets.

@yuda110
Last active April 22, 2016 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuda110/b7181cc823d9909af9c63b66ed16b2af to your computer and use it in GitHub Desktop.
Save yuda110/b7181cc823d9909af9c63b66ed16b2af to your computer and use it in GitHub Desktop.
#python3
result = 0
i = 1
while i < 1000 :
if i % 3 == 0 or i % 5 == 0:
result += i
i += 1
print(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment