¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
How to use the modulus operator at a number smaller than the other?
If I want to use the modulus operator on 2 numbers, the first being smaller than the second, what do I get? Ex: 1 % 30
2 Respuestas
+ 2
You always get the smaller number as result, so there's actually no point in doing the modulus operation.
0
Thanks