Last active
April 22, 2016 00:06
-
-
Save yuda110/b7181cc823d9909af9c63b66ed16b2af 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
#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