A-A+

阅读程序: Function Fun(a As Integer) Static C b=0:

2022-08-05 23:48:40 问答库 阅读 173 次

问题详情

阅读程序: Function Fun(a As Integer) Static C b=0:b=b+2:c=c+2 F=a*b*c End Function Private Sub Command1_Click() Dim a As Integer a=2 For i=1 To 2 Print Fun(A) ; Next End Sub 运行上面的程序,单击命令按钮,输出结果为
A.8 16
B.9 18
C.10 20
D.7 14请帮忙给出正确答案和分析,谢谢!

参考答案

正确答案:A

考点:程序