Write a program to calculate the sum of even numbers in a user given range in python
Answers
Answered by
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
Math,
2 months ago
Physics,
5 months ago
Social Sciences,
5 months ago
Hindi,
11 months ago
Math,
11 months ago