title: How do get numbers to display as two digits in C?
body: <p>For C programming. How do i get numbers to be displayed as 00, 01, 02, 03, instead of 0, 1, 2, 3. I just need 0 before the number until 10.</p>
  
  <p>i know when your doing decimals you can do "%.2f" etc. but what about in reverse for integers?</p>
  
  <p>here is what I am using...**</p>
  
  <pre><code>printf("Please enter the hours: ");
      scanf ("%d",&amp;hour);
  printf("Please enter the minutes: ");
      scanf ("%d",&amp;minute);
  printf("Please enter the seconds: ");
      scanf ("%d",&amp;second);
  printf("%d : %d : %d\n", hour, minute, second);
  </code></pre>
  
  <p>}</p>
  
  <p>I need the numbers to display as 00 : 00 : 00</p>
  
  <p>??</p>