Posts

Showing posts with the label write a program to print sum of numbers from M to N

coding practice-9

 write a program to print sum of numbers from M to N                     m=int(input())           n=int(input())           s=0           for i in range(m,n+1):               s+=i         print(s)