单项选择题

编写如下程序:
Private Sub Command1_Click()
Dim m As Integer, n As Integer
n=2
For m=1 To 3
Print proc(n);
Next m
End Sub
Function proc(i As Integer)
Dim a As Integer
Static b As Integer
a=a+1
b=b+1
proc=a*b+i
End Function
程序运行后,单击命令按钮Command1,输出结果为______。

A.3 3 3
B.3 4 5
C.3 5 6
D.1 2 3
题目列表

你可能感兴趣的试题

微信扫码免费搜题