0

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.

So far I have this....

numerator = int(input("Enter your numerator: "))
divisor = int(input("Enter your divisor: "))

print(numerator%divisor)

*How do you get the quotient and the remainder to display???

Roshin Raphel
  • 2,478
  • 3
  • 18
  • 34

1 Answers1

-2
num=int(input("Enter a number"))
den=int(input("Enter another number"))
print("The answer is " + str(num//den) + " R " + str(num%den))
deadshot
  • 8,317
  • 4
  • 15
  • 36
Rohan
  • 1