title: Code a program with a nested for loop
body: <pre><code>public class numbers {
  
  public static void main(String[] args) 
  {
      int num1 = 1;
      int num2 = 1;
      for (int i = 0; i &lt; 4; i++)
      {
          System.out.println(num1 + "\t" + num2++);
          }
      }
  }
  </code></pre>
  
  <p>output look likes this:</p>
  
  <pre><code>1     1
  1     2
  1     3
  1     4
  </code></pre>
  
  <p>I need to use a nested for loop to get the output to look like this:</p>
  
  <pre><code>1  1
  1  2
  1  3
  1  4
  2  1
  2  2
  2  3
  2  4
  </code></pre>
  
  <p>I'm stumped.</p>