Answer to Question #345269 in Python for Chintu

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

1
Expert's answer
2022-05-26T14:08:09-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS