Quotient and reminder

# Quotient and reminder

Num1 = int(input("Enter number:"))
Num2 = int(input("Enter number:"))

if(Num1<Num2):
Num1, Num2 = Num2, Num1

# Note Truncation divide

q = Num1//Num2
r = Num1%Num2

print("Quotient = ",q)
print("Reminder = ", r)

No comments:

Post a Comment

Don't be a silent reader...
Leave your comments...

Anu