How do you use % to determine if a number is even. I don't understand.

Printable View

- 03-24-2003blkcherryHow do u use........
How do you use % to determine if a number is even. I don't understand.

- 03-24-2003Prelude
>How do you use % to determine if a number is even. I don't understand.

Code:`if ( val % 2 == 0 )`

// Even

-Prelude