title: How to separate the number with spaces in between using while loop and power function
body: <p>How do I separate number with 5 spaces in between the numbers without reversing the number using while loop and  pow function?</p>
  
  <p>User can enter any number of numbers. It is not restricted to example just 3.</p>
  
  <p>User will be asked to input n-number of numbers.
  User will be asked to enter the numbers.
  Print out the numbers without using arrays but only basic while loop and pow function.</p>
  
  <p>Hope to get some help, thank you!</p>
  
  <p>I've tried but below is my result</p>
  
  <blockquote>
    <p>Please enter number of digit: 3<br>
    Please enter the 3 digit number: 123  </p>
  </blockquote>
  
  <p>Output: </p>
  
  <blockquote>
    <p>3   2   1</p>
  </blockquote>
  
  <p>Expected output:</p>
  
  <blockquote>
    <p>1   2   3</p>
  </blockquote>
  
  <pre><code>int num;
  int digit;
  // int final;
  int n;
  int counter;
  
  printf("Number of digits: ");
  scanf("%d", &amp;num);
  
  printf("\nDigit number: ", num);
  scanf("%d", &amp;n);
  counter = 0;
  
  while (counter &lt; n) {
      digit = n % 10;
      n = n / 10;
      counter++;
      printf("%d   ", digit);
  }
  </code></pre>