title: Aligning Output Values in C
body: <p>So I'm working on a program which needs to format output. The output is supposed to be aligned, and it does do so with small numbers:</p>
  
  <p><img src="https://i.stack.imgur.com/cQClg.png" alt="This works"></p>
  
  <p>But then when I give big numbers, it no longer works:</p>
  
  <p><img src="https://i.stack.imgur.com/CxNTx.png" alt="This doesn&#39;t work"></p>
  
  <p>My code is really but here's the part that prints the main output:</p>
  
  <pre><code>/* The following code prints out the data */
  
      printf("\n\nStatistics: \n\n");
      printf("Descrip\t\tNumber:\t\tTotal:\t\tAverage:\n\n");
      printf("Normal\t\t%d\t\t%d\t\t%d\n\n",normal_counter,normal_total,normal_average);
      printf("Short\t\t%d\t\t%d\t\t%d\n\n",short_counter,short_total,short_average);
      printf("Long\t\t%d\t\t%d\t\t%d\n\n",long_counter,long_total,long_average);
      printf("Overall\t\t%d\t\t%d\t\t%d\n\n",overall_counter,overall_total,overall_average);
  </code></pre>
  
  <p>How can I get the output to align?</p>