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
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}")
Comments
Leave a comment