+ 1
How i solve modulus?
I cannot understand 26%6=2
4 Respuestas
+ 7
26%6 actually returns the remainder of 26/6.
Likewise, 5/3 has remainder of 2 hence, 5%3 = 2.
+ 1
26 divided by 6 equals 24 plus a reminder of 2.
26 modulus 6 will give you only the reminder: 2
+ 1
thanks
+ 1
See my "% Modulus explained" code to understand in a way, you may have learnt at school
https://code.sololearn.com/c2fRl6x893E7/?ref=app