title: How do you find the rightmost digit of an integer?
body: <p>Assume that an int  variable <code>x</code> that has already  been declared,</p>
  
  <p>write an expression  whose value  is the last (rightmost) digit of <code>x</code>.</p>
  
  <p>I know the answer is <code>x%10</code>, but why is that the expression that reveals the rightmost digit?</p>