+ 1
% operator
An example of % operator please
5 Respuestas
+ 2
3 % 2 = 1
6 % 4 = 2
16 % 8 = 0
% operator gives the remainder.
+ 2
% is mod operator for remain results of divide
(10%2)=0 and (11%2)=1
+ 2
% is basically the modulus operator which returns the remainder. For example:
5%2=1
0
Thx a lot.