Answer to Question #307348 in Python for Kent

Question #307348

Write a program that inputs a numerator and denominator then display their quotient and remainder


Sample output:

Enter numerator: 91

Enter denominator: 6

Quotient is: 15

Remainder is: 1


1
Expert's answer
2022-03-07T07:11:34-0500
numerator=int(input("Enter numerator: "))
denominator=int(input("Enter denominator: "))
quotient=numerator//denominator
remainder=numerator%denominator
print(f"Quotient is: {quotient}")
print(f"Remainder is: {remainder}")

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