+ 1
What means %
x=15 y=6 x%y x-?
4 Respostas
+ 8
% is the modulo operator.
For example:
15%6 is equal to 3
How:
3 is the remainder of 15 divided by 6
The easiest way to do it will be like this:
to count how many 6 in 15 which is 2 so => 2*6 is 12 and 15-12=3
So, 15%6=3
I hope this helps!
+ 1
Thanks man
0
Do for 18%7
0
Ian Chelimo
18%7=4
There is only two 7 in 18 so:
18-(2*7)= 18-14 = 4
4 is the remainder