a, b = map(int, input().split())
sum = 0
for i in range(a,b + 1):
    if i%2 == 0:
        sum = sum +i
print(sum)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: