Python Program To Find Quotient And Remainder Of Number

Write Python code to find quotient and remainder of a given number

# WAP to find quotient and remainder of the given number

dividend = int(input("Enter the dividend number :--> "))
divisor = int(input("Enter the divisor number :--> "))

quotient = dividend // divisor
remainder = dividend % divisor

print("\n\nQuotient :-->", quotient)
print("Remainder :-->", remainder)

Output:

Enter the dividend number :--> 9
Enter the divisor number :--> 4


Quotient :--> 2
Remainder :--> 1

<< Previous | Next >>


Leave a Reply

Your email address will not be published.