0
how to use % operator?
I wonder how to use it.. really confused me
4 Respuestas
+ 9
Wrong @uvaish zafri. % is modulus operator and it gives remainder not quotient.
eg: 5%2=1
+ 6
It gives you the remainder of the interger division, you use it as the rest of the operations but with %, for example: 7 % 4= 3
+ 1
remainder are stored in this
like as
10%3=1
16%3=1
0
What does it means by % this symbol