运行下列程序:Option Base 1Private Sub Form_Click()y = 43x = Array(21, 4, 50, 18, 23, 44

21 查阅

运行下列程序:

Option Base 1

Private Sub Form_Click()

y = 43

x = Array(21, 4, 50, 18, 23, 44, 87, 32, 67, 70)

For i = 1 To 10

If x(i)< y Then

z = x(i) + 1

y = x(i)

Else

z = z + y

End If

Next i

Print z

End Sub

单击窗体后,则在窗体上显示的结果是()。

A.43

B.21

C.37

D.44

参考答案:

C

计算机二级