Dim i As Integer, j As Integer, n As Integer
For i = 0 To 9
n = i
If n > 4 Then n = 9 - n
For j = 1 To 2 * n + 1
Print i;
Next j
Next i
Dim i As Integer, j As Integer, n As Integer
For i = 0 To 9
n = i
If n > 4 Then n = 9 - n
For j = 1 To 2 * n + 1
Print i;
Next j
Next i