+ 1

y%2! , what does this mean?

6th Jan 2017, 10:21 PM
John Maleckar
4 ответов
+ 3
you have a variably y which you divide by two and the returning value is the remainder of the division
6th Jan 2017, 10:47 PM
Kamil
Kamil - avatar
+ 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
6th Jan 2017, 11:03 PM
Kamil
Kamil - avatar
+ 2
Divide y by 2 and the returning value is the remainder of the division. Thanks man.
6th Jan 2017, 10:55 PM
John Maleckar