[单项选择题] 阅读下面的程序; Function Func(x As Integer,y As Integer)As IntegerDim n As IntegerDo While n < = 4
15 查阅
[单项选择题] 阅读下面的程序; Function Func(x As Integer,y As Integer)As IntegerDim n As IntegerDo While n < = 4 x=x + y n = n + 1LoopFunc=x End Function Private Sub Command1_Click()Dim x As Integet, y As IntegerDim n As Integer,z As Integerx=1y=1For n = 1 To 6 z=Func(x,y)Next nPrint z End Sub 程序运行后,单击命令按钮,输出的结果为.
A.16
B.21
C.26
D.31
参考答案: