you are given two integers, a and b. print the smallest value among a%b and b%a.
a = 1234 b = 678 x = a%b if a%b < b%a else b%a print('a =', a, 'b =', b) print('Smallest value among a%b and b%a is', x)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment