title: How to get the last digit of a number without using modulus(%) operator?
body: <blockquote>
    <p>If we are told that we can't use modulus operator then how can we take
    out the last digit of a number.</p>
  </blockquote>
  
  <p><strong>e.g.</strong><br>
  <code>N=2345,</code> we should get 5.</p>
  
  <p>Try to provide a generic solution.</p>
  
  <p><strong>What I found:</strong></p>
  
  <pre><code>N- N/ 10 * 10
  </code></pre>