【单选题】在窗体中添加一个命令按钮,然后编写如下代码: Private Sub Command1_Click( ) For i=l To 4 x=4 For j=1 To 3 x=3 For k=l To 3 x=x+6 Next k Next j Next i Print x End Sub 程序运行后,单击命令按钮,输出结果是
【简答题】在窗体中添加一个命令按钮(名为Command1),然后编写如下代码: Public x as integer Private Sub Command1_Click( ) x=5 Call s1 Call s2 MsgBox x End Sub Private Sub s1( ) x=x+10 End Sub Private Sub s2( ) Dim x as integer x=x+10 End...
【单选题】在窗体中添加一个命令按钮,名称为Command1;添加一个文本框,名称为Te,然后编写如下程序: Private Sub Command1_Click( ) Dima(5),b(5) Forj:1 T04 s(j)=3*j b(j)=a(j)*3 Next j Te.Text=b(j/2) End Sub 程序运行后,单击命令按钮,在文本框中显示