Header Ads

Header ADS

1133.Rest of Division in python

This is the solution of this problem in python:

x=int(input())
y=int(input())
if(x>y):
    x,y=y,x
    for i in range(x+1,y):
        if(i%5==2 or i%5==3):
            print(i)
elif(y>x):
    for i in range(x+1,y):
        if(i%5==2 or i%5==3):
            print(i)

No comments

Powered by Blogger.