Answer to Question #97899 in Python for L

Question #97899
Write a program that prompts the user to input two numbers, a numerator and a divisor. Your program should then divide the numerator by the divisor, and display the quotient and remainder.
1
Expert's answer
2019-11-04T06:28:48-0500

m =int(input("Enter numerator: " ))

n = int(input("Enter divisor: " ))

x=m//n

y=m%n

print("Quotient = ", x)

print("The remainder of the division =",y)

---------------------------------------------------------

============== RESTART: D:/PYTHON/Q97899.py ==============

Enter numerator: 38

Enter divisor: 7

Quotient = 5

The remainder of the division = 3



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