Python Program to find quotient without using the division operator
In this program, You will learn how to find quotient without using a division operator in Python.
5 = int(10 / 2)
0 = int(2 / 10)
Example: How to find quotient without using division operator in Python.
x = int(input("Enter first number:"))
y = int(input("Enter second number:"))
z = 0
while x >= y:
x = x - y
z = z + 1
print("Quotient is:", z)
Output:
Enter first number:10
Enter second number:3
Quotient is: 3