+ 1
y%2! , what does this mean?
4 Answers
+ 3
you have a variably y which you divide by two and the returning value is the remainder of the division
+ 3
pls notice, it's the REMAINDER
so
9%2. would be 9/2 which is 4 and a remainder of 1
so 9%2 will return 1
+ 2
Divide y by 2 and the returning value is the remainder of the division. Thanks man.