1
a = int(input())
b = int(input("\n"))
out=0
for i in range(a, b):
out = out+ i
out -=a
print(out)
2
out +=b
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
1
a = int(input())
b = int(input("\n"))
out=0
for i in range(a, b):
out = out+ i
out -=a
print(out)
2
a = int(input())
b = int(input("\n"))
out=0
for i in range(a, b):
out = out+ i
out +=b
print(out)