What is the meaning of this ( integ % ANOTHER INTEG) Ex... Print(20%6) 2
5/9/2019 5:45:12 AM
ABDELRHMAN RAGAB4 Answers
New AnswerABDELRHMAN RAGAB The answer isn't 1,because you're using the division operator, not the modulo operator. To make the answer 1,you'd need to write this: 10 % 3
This is the modulo operator (% in some languages, or mod in math) giving you whats left of a integer devision. E.g. 17 % 3 = 2 (due 3*5+2 = 17).
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message