Skip to content

Instantly share code, notes, and snippets.

@nattybear
Last active March 23, 2017 21:16
Show Gist options
  • Save nattybear/e491b1bde24cdec6bac80b16cd1f831b to your computer and use it in GitHub Desktop.
Save nattybear/e491b1bde24cdec6bac80b16cd1f831b to your computer and use it in GitHub Desktop.
num1 = int(input())
num2 = int(input())
sum = 0
for i in range(num1, num2 + 1):
sum = sum + i
print(sum)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment