Subscribe Us

STEM Implement Code In Python

STEM Implement Code In Python


a=int(input())
b=int(input())
if(a > b ):
    max= a 
else:
    max=b 
while(True):
    if(max % a == 0 and max % b == 0):
        x=max
        break
    max=max+ 1 
a=max//a
b=max//b 
print(a-1,b-1)

Post a Comment

0 Comments