Posts

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

coding practice-9

   write a program to print sum of even numbers from N to M natural numbers                     m=int(input())           n=int(input())           t=0           for i in range(m,n+1):               if((i%2)==0):                   t+=i           print(t)