**New course!**Every coder should learn

**Generative AI!**

0

# i want to know equation of quotient and remainder

2 Answers

+ 1

quotient=a//b
remainder =a℅b

+ 1

This is a tricky concept. The way it works is that if you use the two slashes // it will divide your numbers without leaving a remainder. For example if you if you do
9//3 your output will be 3
If you do 10//3 your output will still be 3
11//3 your output will also be 3.
Now once you get to 12//3 your output will be 4.
13//3 also 4.
Basically it divides it and cuts off all but the whole number.
Using the % just figures out what the remainder is and then it only lists the remainder.
So if you do 9%3 your output would be 0
10%3 your output would be 1
11%3 your output would be 2
12%3 your output would be back to 0.
For % all you are going to have left is the remainder. I hope this has been helpful to some of you.