Skip to content

Instantly share code, notes, and snippets.

@yuyueugene84
Created December 17, 2021 16:29
Show Gist options
  • Save yuyueugene84/35bc28ca2242415cb528a1457b3be34e to your computer and use it in GitHub Desktop.
Save yuyueugene84/35bc28ca2242415cb528a1457b3be34e to your computer and use it in GitHub Desktop.
a = int(input())
b = int(input())
total = 0
for i in range(a, b + 1):
total += i
print(total)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment