Answer:
See the code in the explanation section
Explanation:
Note: the code below is writen in Python language
lower = int(input("Enter lower bound of range: "))
upper = int(input("Enter upper bound of range: "))
sum = 0
for i in range(lower, upper + 1):
sum = sum + i
i = i + 1
print("Sum is ", sum)