your given two integers. a and b print the smallest among a%b and b%a
Expert's answer
a = int(input("Enter a: "))
b = int(input("Enter b: "))
a_b = a % b
b_a = b % a
if a_b < b_a:
print('The smallest is a%b:', a_b)
else:
print('The smallest is b%a:', b_a)
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot