Computer Science, asked by kurbah18, 11 months ago

1.
Write a Python program to find the sum of even integers within a given range.

Answers

Answered by Swetha03K
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