Question #345269

The value of a%b is 3 and the value of b%a is 1 as the smallest of the two is 1 so the out putbe 1





Sample output





3





7





Sampleinput





1

Expert's answer

print("Enter number 1: ")
num1 = int(input())
print("Enter number 2: ")
num2 = int(input())
print( min(num1%num2,num2%num1) )

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS