Computer Science, asked by harshvirsingh67, 6 months ago

#programe to print sum of all the even no. from 1 to 50...
plz do in python.....

Answers

Answered by harshvirsing55
2

Answer:

sum=0

for a in range(1,51):

  if a%2==0:

  sum+=a

print('Sum of Even no.s between 1 and 50 =',sum )

THANKYOU : )

Similar questions