在窗体中添加一个名称为Command1的命令按钮,然后编写如下事件代码:
Private Sub Command1_Click()
Dim a(10,10.
For m=2 To 4
For n=4 To 5
a(m,n.=m*n
Next n
Next m
MsgBox a(2,5.+a(3,4.+a(4,5.
End Sub
窗体打开运行后,单击命令按钮,则消息框的输出结果是
A.22 B.32 C.42 D.52
参考答案:
答案解析:
在窗体中添加一个名称为Command1的命令按钮,然后编写如下程序:Public x As IntegerPrivat
在窗体中添加一个名称为Command1的命令按钮,然后编写如下程序:Public x As IntegerPrivate Sub Command1_Cl