title: Removing the last digit of an inputted integer
body: <p>I was able to reverse the integer inputted using a nested for-loops, but I am unable to remove the last digits when going down through the rows.</p>
  <p>(I don't want to use string-to-number, arrays, or functions.)</p>
  <hr />
  <p>My code:</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;math.h&gt;
  
  int main()
  {
      int number;
      printf(&quot;enter a number&quot;);
      scanf(&quot;%d&quot;, &amp;number);
  
      for(int j = 1; j &lt;= (log10(number) + 1); j++) {
          for(int i = 1; i &lt;= (log10(number) + 1); i++) {
              printf(&quot;%d   &quot;, (number % ((int)pow(10, i))) / (int)pow(10, i-1));
          }
          printf(&quot;\n&quot;);
      }
      return 0;
  }
  </code></pre>
  <hr />
  <p>My Output: (Inputting 1234)</p>
  <pre><code>4   3   2   1                                                                                                                        
  4   3   2   1                                                                                                                        
  4   3   2   1                                                                                                                        
  4   3   2   1  
  </code></pre>
  <hr />
  <p>What I want to Output: (Inputting 1234)</p>
  <pre><code>4   3   2   1   0                                                                                                                        
  3   2   1   0                                                                                                                      
  2   1   0                                                                                                                     
  1   0
  0 
    
  </code></pre>