+ 1
Operations
What is the meaning of this ( integ % ANOTHER INTEG) Ex... Print(20%6) 2
4 Respostas
+ 3
ABDELRHMAN 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
+ 1
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).
0
Like 10/3
Answer will be 1?
0
Thanks for you, I just start to learn python about 5 days ago