Determine if number is odd or even

How do you programmatically determine if a number is odd or even?
The modulus operator is a good way to determine if a number is odd or even. Here is an example of how to use it:
if(number % 2 == 0){ //this means the number is even } else{ //this means the number is odd }
programming
Check out more questions and answers here