+ 1

What is x%=6 given that x=0?

Modulus operator

23rd Sep 2016, 7:08 PM
Hemprasanth Karunakaran
Hemprasanth Karunakaran - avatar
5 Réponses
+ 5
In any modulus, if the second number is bigger than the first, then the answer will be the first. Example 8 % 100 = 8, 100 % 10000 = 100. Therefore 0 % (anything greater than zero) = 0
24th Sep 2016, 12:59 AM
Cheshire Cat
Cheshire Cat - avatar
+ 1
0.
23rd Sep 2016, 7:45 PM
Zen
Zen - avatar
0
0
23rd Sep 2016, 10:32 PM
RATNESH SINGH
0
0
24th Sep 2016, 12:22 AM
Nathan
Nathan - avatar
0
0
24th Sep 2016, 6:23 AM
Bimal Tirkey
Bimal Tirkey - avatar