title: C algorithm about returning a number
body: <p>I have this algorithm</p>
  
  <pre><code>int oglinda(int n)
  {
      if(n&gt;9)
      {
  
          cout &lt;&lt; n%10;
          oglinda(n/10);
      }
  }
  </code></pre>
  
  <p>and it returns a number from right to left for example for 341=>143.
  Here's the problem:
  When the algorithm reaches the last number (which is &lt; 9) it shouldn't receive it's value but instead it does. How comes that when the number is less than 9?</p>