How does modulus works | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How does modulus works

i'm bad at it

14th Mar 2017, 6:15 PM
azize bnd
azize bnd - avatar
3 Answers
+ 16
13 / 3 ... 12 / 3 = 4... 13 - 12 = 1... Hope this makes sense if Tamra's explication was bad (which in my opinion is great)
14th Mar 2017, 8:35 PM
Gami
Gami - avatar
+ 14
Modulus gives the remainder of division. Ex: 10 % 3 = 1. 3 goes into 10 three times, and 1 is left over.
14th Mar 2017, 7:14 PM
Tamra
Tamra - avatar
+ 1
thnx guys
14th Mar 2017, 11:32 PM
azize bnd
azize bnd - avatar