Answer to Question #214654 in Python for kaavya

Question #214654

You are given two integers, a and b. Print the smallest value among a%b and b%a.




1
Expert's answer
2021-07-07T06:16:01-0400
a, b = map(int, input("Enter 2 integers separated by space: ").split())

minimum = min(a % b, b % a)
print(minimum)

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