Header Ads

Header ADS

1071.Sum of Consecutive Odd

This is the solution of this problem:

X=int(input())
Y=int(input())
total=0
for i in range((Y+1),X):
    if(i%2!=0):
        total=total+i
print (total)
😉💪💪😉😉

No comments

Powered by Blogger.