title: Loop that writes a number vertically
body: <p>I'm trying to take the number 1234 and write it as:
  1
  2
  3
  4
  My code has it displayed as:
  4
  3
  2
  1
  Here is my code:</p>
  <pre><code>
  
     public static void verticalLoop(int num )
      {
        while(num != 0)
        {
           System.out.println(num % 10);
           num = num / 10;
        }
  }
  </code></pre>