+ 1

How is the modulo work ?

I dont understand the modulo work

2nd Feb 2017, 4:22 AM
GhatotKacha
1 Answer
+ 4
This question is asked million times. Just search q&a next time. Modlus return the remainder of the division. For example 10%4 = 2 Because 2 * 4 = 8 and 10-8=2. So 2 is the remainder and thats what the modulus operator will return for this division.
2nd Feb 2017, 5:52 AM
Nikolai Russev
Nikolai Russev - avatar