1.
Write a Python program to find the sum of even integers within a given range.
Answers
Answered by
1
ll=int(input("Enter lower limit:"))
ul=int(input("Enter upper limit:"))
e=se=0
for i in range(ll,ul+1):
if i%2==0:
e+=i
se+=e
print("Sum of even integers of the given range is:",se)
Similar questions
Computer Science,
5 months ago
Math,
5 months ago
English,
5 months ago
English,
11 months ago
Political Science,
1 year ago