Answer to Question #220416 in Python for Hari nadh babu

Question #220416
Smallest Remainder

Write a Python program of Smallest Remainder. It consists of two test cases


The below link contains Smallest Remainder - Question, explanation and test cases

https://drive.google.com/file/d/1nP_gPJ_yy1nsY6YCwlISiZRSoyA5E2Vx/view?usp=sharing



We need all test caese can be come while code was running
1
Expert's answer
2021-07-25T16:02:58-0400
num1 = int(input("Enter First number:"))
num2 = int(input("Enter Second number:"))


a = num1 % num2
b = num2 % num1
if a > b:
    print(b)
else:
    print(a)

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