numberA % numberB
myModulus = 11 % 2; //myModulus = 1;
Use % to determine if the value of a variable is even or odd.