How does the "%" works? I havent learn this math operation before, can someone tell me what is this? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How does the "%" works? I havent learn this math operation before, can someone tell me what is this?

6th Jan 2017, 1:52 PM
MOSES DYE
MOSES DYE - avatar
2 Answers
+ 7
This operator divides the numbers and returns the remainder. For example: 46 % 10 = ? 46 / 10 is 4 remainder 6. %, instead of returning the division, returns the remainder. Note: This is mainly a programming operator. You won't encounter it much in real life.
6th Jan 2017, 1:55 PM
Caleb Jore
Caleb Jore - avatar
0
Thanks! :)
6th Jan 2017, 1:55 PM
MOSES DYE
MOSES DYE - avatar