Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- X = int(input())
- Y = int(input())
- total = 0
- start = min(X,Y) + 1
- limit = max(X,Y)
- if start % 2 == 0:
- start += 1
- for data in range(start, limit, 2):
- total += data
- print(total)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement