New course! Every coder should learn Generative AI!
Try a free lesson0
If I put 7%28, the result is 7. How come? Is it because 7 is a smaller int number than 28?
3 Answers
+ 3
yes, it’s just
7 = 28 * 0 + 7
+ 2
The % operator gives the remainder of any number so that's why you have 7 as the answer
0
I got it. Thx a lot..