what if you have like 1%10? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

what if you have like 1%10?

3rd Jul 2016, 8:44 AM
Irakoze Yves
3 Answers
+ 2
% is for modulo not divider, 1%10 that means 1 modulo 10, the result is 1 since 10 is bigger than 1, impossible to get the reminder, the operation return the first number (I don't know what is the number called) take a look example: 26%27 =26, 7%12=7, 1%3=1 etc. hope this helpfull
9th Jul 2016, 5:16 PM
www.rolies.me
www.rolies.me - avatar
+ 1
1 is the answer. 1/ 10=0 remainder is 1
3rd Jul 2016, 11:24 AM
Midhun Mathew
0
OK thank you
3rd Jul 2016, 3:44 PM
Irakoze Yves