Question #214654

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




Expert's answer

a, b = map(int, input("Enter 2 integers separated by space: ").split())

minimum = min(a % b, b % a)
print(minimum)
LATEST TUTORIALS
APPROVED BY CLIENTS