title: In C How to use leftmost digit from an integer
body: <p>I was wondering how to reverse my output to match entered number.
  Example if user entered <code>543210</code>, I want the output to be: <code>Five Four Three Two One Zero</code>. But instead it's reversed and I can't figure out how to reverse it. </p>
  
  <blockquote>
    <p>I can't use loops or anything else.</p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>int main(void){
          int value;
          int digit;
  
          printf("enter:");
          scanf("%i", &amp;value);
  
          while(value)
          {
  
  
                  digit = value % 10;
                  value = value / 10;
  
                  if(digit != 0)
                  {
  
                          switch(digit)
                          {
                                  case 0:
                                          printf("zero ");
                                          break;
                                  case 1:
                                          printf("one ");
                                          break;
                                  case 2:
                                          printf("two ");
                                          break;
                                  case 3:
                                          printf("three ");
                                          break;
                                  case 4:
                                          printf("four ");
                                          break;
                                  case 5:
                                          printf("five ");
                                          break;
                                  case 6:
                                          printf("six ");
                                          break;
                                  case 7:
                                          printf("seven ");
                                          break;
                                  case 8:
                                          printf("eight ");
                                          break;
  
                                  case 9:
                                          printf("nine ");
                                          break;
                          }
                  }
  
          }
  
          return 0;
  
  }
  </code></pre>
  
  <p>Exmaple: If user entered 1234<br>
  Output would be: four three two one.</p>
  
  <p>How would I fix it to be: One Two Three Four.</p>