The C++
Modulus Operator. ... It's not hard to come up with a formula, but the language provides a built-in mechanism, the
modulus operator ('%'), that computes the remainder that results from performing integer division. The
modulus operator is useful in a variety of circumstances.
read more >>