pythpn program to find the sum of natural numbers from M to N where M and n are by the input by the user....
class 8 ans fast ....
Answers
Answered by
2
Answer:
#python
n = int(input("value of n = "))
m = int(input(" value of m = "))
total = 0
for i in range(n, m+1):
total += i
print("sum = ",total)
Similar questions