title: Separating the Digits in an Integer - exercise from Deitel's Java book
body: <p>Exercise from Deitel's "Java How To Program" 10th edition:</p>
  
  <blockquote>
    <p>2.30 (Separating the Digits in an Integer) Write an application that inputs one number consisting of five digits from the user, separates the number into its individual digits and prints the digits separated from one another by three spaces each. For example, if the user types in the number 42339, the program should print</p>
  </blockquote>
  
  <pre><code>4   2   3   3   9
  </code></pre>
  
  <blockquote>
    <p>Assume that the user enters the correct number of digits. What happens when you enter a number with more than five digits? What happens when you enter a number with fewer than five digits?[Hint: It's possible to do this exercise with the techniques you learned in this chapter. You'll need to use both division and reminder operations to "pick off" each digit.]</p>
  </blockquote>
  
  <p>Could someone explain to me how should I go about "picking off" individual integers using division and reminder operators?</p>
  
  <p>EDIT: control structures (if / else and the like) are not allowed yet, those are explored in future chapters. Variables, arithmetic operators and comparison operators only.</p>