题目
有如下函数:
Private Function firstfunc(x As Integer, y As Integer) As Integer
Dim n As Integer
Do While n<= 4
x = x + y : n = n + 1
Loop
firstfunc = x
End Function
调用该函数的事件过程如下:
Private Sub Command1_Click( )
Dim x As Integer,y As Integer,n As Integer,z As Integer
x = 1: y = 1
For n = 1 To 3
z = firstfunc(x, y)
Next n
Print z
End Sub
该事件过程的执行结果为()。
(A)1
(B)3
提示:未搜索到的试题可在搜索页快速提交,您可在会员中心"提交的题"快速查看答案。
答案
查看答案
搜题