title: Multiple of 5 checking
body: <p>How is this code working for multiple of 5</p>
  
  <pre><code>bool isMultipleof5(int n)
  {
      /* If n is a multiple of 5 then we make sure that last
         digit of n is 0 */
      if ( (n&amp;1) == 1 )
          n &lt;&lt;= 1;
  
      float x = n;
      x = ( (int)(x*0.1) )*10;
  
      /* If last digit of n is 0 then n will be equal to (int)x */
      if ( (int)x == n )
          return true;
  
      return false;
  }
  </code></pre>