Python Program to find quotient and remainder

In this program, You will learn how to find quotient and remainder in Python.

5 = int(10 / 2)

0 = int(10 % 2)

Example: How to find quotient and remainder in Python.

x = int(input("Enter first number:"))
y = int(input("Enter second number:"))

q = int(x / y);
r = int(x % y);

print("Quotient is:", q)
print("Remainder is:", r)


Enter first number:10
Enter second number:3
Quotient is: 3
Remainder is: 1

Xiith is created for educational, experimental, and schooling purpose. Examples on Xiith are made easier to make a better or basic understanding. Tutorials, testimonials, and examples are continuously checked to avoid delusion, but we cannot take complete responsibility of all programs on Xiith. When you are operating this site, you have to agree to read and accept our terms of use, cookie and privacy policy.Copyright © 2020 by Xiith. All Rights Reserved. About us.