title: How to rotate n-digits of a number without arrays?
body: <p>The problem: user inputs two numbers: a big one, and a small one. 
  The small number is the number of digits from the last digit that will transfer into the front, and the remaining numbers will follow.
  For example: if the big number is 456789 and the small one is 3, the result will be: 789456.
  my idea was as follows:</p>
  
  <pre><code>if(...) {
      newNum =  BigNumber%(10*SmallNumber);
      printf("%d", remainder");
       SmallNumber--; 
  }
  </code></pre>
  
  <p>but it doesn't print in the order I was hoping for, digit by digit, and I can't understand why.
  If using arrays would be allowed, it was no problem. Also I'm not allowed to use <code>string.length</code>, which also make it lots easier.</p>