• Follow Us

Read Two Numbers and Print Their Quotient and Remainder in python

In this Basic Python Program, we will have a look at how read Two Numbers and Print Their Quotient and Remainder in python.

Python program to read Two Numbers and Print Their Quotient and Remainder

 
a=int(input("Enter the first number: "))
b=int(input("Enter the second number: "))
quotient=a//b
remainder=a%b
print("Quotient is:",quotient)
print("Remainder is:",remainder)

Output:

Enter the first number: 15
Enter the second number: 7
Quotient is: 2
Remainder is: 1

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Shopping cart