2 Respuestas
+ 2
Ãso ,
You know, questions like, "what would happen if I change the first line into ( if x%3 == )" are easily answered by trying it yourself in the playground.
Here's a usage of that though.
https://sololearn.com/compiler-playground/c4XaSiliW1zr/?ref=app
+ 10
`%` is used to return the remainder of any division.
Example:-
8%3 = 2.
As 2 will be remainder if we divide 8 by 3.