Computer Science, asked by H029220, 3 months ago

Write a program to calculate the sum of even numbers in a user given range in python

Answers

Answered by Anonymous
12

Answer:

hello,

Explanation:

#python program to calculate the sum of even numbers in a user given range

n=int(input("enter the limit"))

sum=0

for i in range(0,n+1,2):

   sum+=i

print(sum)

hope it helps you...XD

please mark brainliest

@ItzSnowySecret07

Similar questions