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.

Expert's answer

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



LATEST TUTORIALS
APPROVED BY CLIENTS