一道VB题急求答案求输出的是什么
PrivateSubForm_Click()DimA(4)AsInteger,nAsIntegern=3A(1)=1Fork=0Ton-1Forj=1Tok+1x=k+1...
Private Sub Form_Click()
Dim A(4) As Integer, n As Integer
n = 3
A(1) = 1
For k = 0 To n - 1
For j = 1 To k + 1
x = k + 1
A(x) = A(x) + A(x - 1)
If k < n - 1 Then Exit For
Print A(x);
If j = k + 1 Then Print
Next j
Print k
Next k
End Sub
输出的是什么,为什么输出这个 展开
Dim A(4) As Integer, n As Integer
n = 3
A(1) = 1
For k = 0 To n - 1
For j = 1 To k + 1
x = k + 1
A(x) = A(x) + A(x - 1)
If k < n - 1 Then Exit For
Print A(x);
If j = k + 1 Then Print
Next j
Print k
Next k
End Sub
输出的是什么,为什么输出这个 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询