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:

programming
if(number % 2 == 0){
//this means the number is even
}
else{
//this means the number is odd
}