求VB题目 ,求第一行和最后一行的结果
PrivateSubForm_Click()DimA(5)AsIntegerForI=1To5A(I)=INextICallF1(A)ForI=1To5PrintA(I)...
Private Sub Form_Click()
DimA(5) As Integer
For I=1 To 5
A(I)=I
Next I
Call F1(A)
For I =1 To 5
Print A(I)
Next I
End Sub
Private Sub F1(S() As Integer)
For I=1 To 5
If S(I) < 8 Then
For I= 1 To 5
S(J)=S(J)+J
Next J
Call F1(S)
End If
Next I
End Sub
求第一行和最后一行的结果 展开
DimA(5) As Integer
For I=1 To 5
A(I)=I
Next I
Call F1(A)
For I =1 To 5
Print A(I)
Next I
End Sub
Private Sub F1(S() As Integer)
For I=1 To 5
If S(I) < 8 Then
For I= 1 To 5
S(J)=S(J)+J
Next J
Call F1(S)
End If
Next I
End Sub
求第一行和最后一行的结果 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询