Last active
May 16, 2016 01:09
-
-
Save victorvaz/b23ea17ae11806fb55f664a699c85d8d 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
# Realiza a soma de 0 a 999: | |
r = 0 | |
x = 1 | |
while x < 1000 : | |
r = r + x | |
x = x + 1 | |
print("A soma de 0 a 1000 é " + str(r)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment