what this symbole % dowing | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what this symbole % dowing

21st Jan 2017, 3:23 PM
touati imed
touati imed - avatar
3 Answers
+ 6
% stands for modulus It is remainder after division Like you had 5 guys and 13 apples. 3 apples left xD
21st Jan 2017, 3:28 PM
WittyBit
WittyBit - avatar
+ 2
It gives you the remainder (if any) after performing the division. example : 5%2=1; 4%2=0;
21st Jan 2017, 3:51 PM
Rishabh Agrawal
Rishabh Agrawal - avatar
0
@Michael Ermishin; I've had five guys but that's a different story..
21st Jan 2017, 3:58 PM
Aaron
Aaron - avatar