Skip to content

Instantly share code, notes, and snippets.

@victorvaz
Last active May 16, 2016 01:09
Show Gist options
  • Save victorvaz/b23ea17ae11806fb55f664a699c85d8d to your computer and use it in GitHub Desktop.
Save victorvaz/b23ea17ae11806fb55f664a699c85d8d to your computer and use it in GitHub Desktop.
# 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