How to do division for the following example?
Case 1 : Without modulo
n1 = 40, n2 = 8
Quotient = n1/n2 = 5
Case 2 : With modulo
m = 6
n1 = n1 mod m = 4 (AND) n2 = n2 mod m = 2
Quotient = 4 / 2 = 2
Now,In case 1, Quotient = 5, but in case 2, Quotient = 2. How to do division on numbers such that both numbers are already under modulo 'm'?