title: nested for loops making square
body: <p>I wanna make a square with numbers.Something like this:</p>
  
  <pre><code>1 2 3 4 
  2 3 4 5 
  3 4 5 6 
  </code></pre>
  
  <p>And i wrote a peace of code: </p>
  
  <pre><code>int a=input.nextInt();
  for(int i=1; i&lt;=a; i++){
      for (int k=1;k&lt;=a;k++){
          int c=k+1;
          int g=k+2;
          System.out.println();
          System.out.print(k+" ");
          System.out.print(c+" ");
          System.out.print(g+" ");
      }
      System.out.println();
  </code></pre>
  
  <p>the result is: </p>
  
  <pre><code>1 2 3 4 
  2 3 4 5 
  3 4 5 6 
  
  1 2 3 4 
  2 3 4 5 
  3 4 5 6 
  </code></pre>
  
  <p>So, where is the mistake?</p>