This code:

```
   for (i = 1; i <= 5; i++)
          System.out.print(" i ");
   for (j = 1; j <= i; j++)
          System.out.print(" j ");
         System.out.println();

```

Gives the following output:

```
 i  i  i  i  i  j  j  j  j  j  j 

```

I cannot understand why it gives 6 `j`s instead of 5. Can anyone explain what I am missing?