程序设计 VB 计算机二级
单击一次命令按钮后,下列程序的执行结果为PrivateSubCommand1_Click()DimmAsInteger,IAsInteger,x(10)AsInteger...
单击一次命令按钮后,下列程序的执行结果为
Private Sub Command1_Click()
Dim m As Integer, I As Integer, x(10) As Integer
For I=0 To 4: x(I) =I + 1: Next I
For I=1 To 2: Call Prioc(x) : Next I
For I=0 To 3: Print x(I) ;: Next I
End Sub
Private Sub Prioc(a() As Integer)
Static I As Integer
Do
a(I) =a(I) + a(I + 1)
I=I + 1
Loop While I < 2
End Sub 展开
Private Sub Command1_Click()
Dim m As Integer, I As Integer, x(10) As Integer
For I=0 To 4: x(I) =I + 1: Next I
For I=1 To 2: Call Prioc(x) : Next I
For I=0 To 3: Print x(I) ;: Next I
End Sub
Private Sub Prioc(a() As Integer)
Static I As Integer
Do
a(I) =a(I) + a(I + 1)
I=I + 1
Loop While I < 2
End Sub 展开
4个回答
展开全部
3 5 7 4
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
1 5 7 4
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
3 5 7 4
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询