Nested For Loops
v
Just as with Do While loops, we can nest one for loop
inside another.
This is very common when dealing
with 2-dimensional arrays
v
For each iteration of the outer loop executes, we start
the inner loop over again.
Result:
1
1
1
2
2
1
2
2
3
1
3
2
Dim i As Integer, j As Integer
For i = 1 To 3
For j = 1 To 2
Print i, j
Next j
Next i