Description:

To get the quotient on dividing two numbers in Python, we use the // (integer division) operator.

To get the remainder on dividing two numbers in Python, we use the % (modulus) operator.

Python Code:

class Division:
def __init__(self, num1, num2):
self.num1 = num1
self.num2 = num2
def get_quotient(self):
return self.num1 // self.num2
def get_remainder(self):
return self.num1 % self.num2
def main():
num1 = int(input("Enter first number: "))
num2 = int(input("Enter second number: "))
obj = Division(num1, num2)
quotient = obj.get_quotient()
remainder = obj.get_remainder()
print("\nQuotient:", quotient)
print("Remainder:", remainder)
if __name__ == "__main__":
main()

Output:

Enter first number: 20
Enter second number: 3

Quotient: 6
Remainder: 2

## Comments