I have tried to develop and application that enable a background to flash in each second, I wanted to use a counter to count up from I=1 to 100 if 'I' is odd then the background color should be red, if 'I' is even, the background color should be green.

but the problem is, I could not find the code related to the integer parity...

any help would be appreciated

Thank you