0
What is Modulo % ??
2 Respostas
+ 1
You can refer to this:
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2273/
+ 1
its remainder division. Say 12%5 or 12mod5 is 12 divided by 5 in terms of how how many 5’s go into 12. that would be 2, and your remainder would be 2 as well. so 12%5 = (5+5) + 2 = 2.
Also in situations where the number you’re dividing is less than the divisor then your answer would just be that number. I.e. 4%7 = 4.
and lastly if the divisor is a factor of the divended or the same value your Anders would be Zero. For example, 10%5 or 10%10 both equal zero (no remainder)