[单项选择题] 在窗体上画一个文本框,然后编写如下代码: Option Base 1 Private Sub Form_Click()Dim arrDim Start As Integer,Fin
18 查阅
[单项选择题] 在窗体上画一个文本框,然后编写如下代码: Option Base 1 Private Sub Form_Click()Dim arrDim Start As Integer,Finish As IntegerDim Sum As Integerarr=Array(12,4,8,16)Start=Lbound(arr)Finish=Ubound(arr)Sum=0For i=Start To Finish Sum=Sum+arr(i)Next ic=Sum/FinishText1.Text=c End Sub 程序运行后,单击窗体,则在文本框中显示的内容是
A.40
B.10
C.12
D.16
参考答案: