Private Sub Command1_Click()
Me.Cls
Dim N As Integer, i As Integer
N = InputBox("n=", , 9)
For i = 1 To 2 * N - 1
If i <= N Then
Print Space(N - i) + String(2 * i - 1, CStr(i))
Else
Print Space(N - (2 * N - i)) + String(2 * (2 * N - i) - 1, CStr(2 * N - i))
End If
Next i
End Sub