 7 divided by 3 is 2 with 1 left over.<br />
<br />
The modulus operator turns out to be surprisingly useful. For
example, you can check whether one number is divisible by another---if
<tt>x % y</tt> is zero, then <tt>x</tt> is divisible by <tt>y</tt>.<br />
<br />
<a name="@default77"></a><br />
<br />
Also, you can extract the right-most digit
or digits from a number. For example, <tt>x % 10</tt> yields the
right-most digit of <tt>x</tt> (in base 10). Similarly <tt>x % 100</tt>
yields the last two digits.