杨辉三角哪里错了啊
Private Sub Command1_Click()Dim i As Integer, j As Integer
Dim a() As Integer, n As Integer
n = Val(InputBox("请输入行数"))
ReDim a(n, n)
For i = 1 To n
a(i, i) = 1: a(i, 1) = 1
Next i
For i = 3 To n
For j = 2 To i - 1
a(i, j) = a(i - 1, j - 1) + a(i - 1, j)
Next j
Next i
For i = 1 To n
For j = 1 To i
Print Tab( n - i + 1 + 2 * (j) ); a(i, j);
Next j
Next i
End Sub