FIT
100
© Copyright 1999-2000 University of Washington
Mini-Exercise – Answer
v
What does this print?
Dim i As Integer, j As Integer
For i = 0 To 3
For j = 1 To i
Print i, j
Next j
Next i
1
1
2
1
2
2
3
1
3
2
3
3
Note that the upper bound for the inner loop depends on
the loop variable for the outer loop.