32.3k views
0 votes
In python code write a program that prompts the user to input two POSITIVE numbers — a dividend (numerator) and a divisor (denominator). Your program should then divide the numerator by the denominator, and display the quotient followed by the remainder.

User Alican
by
4.7k points

1 Answer

3 votes

Answer:

The python code for the given problem is written in explanation section.

Step-by-step explanation:

The code for the given situation, in Python, can be written as follows:

x = int(input("Enter a positive number for dividend: "))

y = int(input("Enter a positive number for divisor: "))

quotient = x//y

remainder = x%y

print("The Quotient of the given calculation is:",quotient)

print("The Remainder of the given calculation is:",remainder)

User ThomasArdal
by
5.1k points