在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程: Private Sub Command1_Click() Static x As Integer Cls For i=1 To 2 y=y+x

admin2012-03-22  22

问题 在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程:    Private Sub Command1_Click()    Static x As Integer    Cls    For i=1 To 2      y=y+x      x=x+2     Next     Print x,y    End Sub    程序运行后,连续三次单击Command1按钮后,窗体上显示的是(    )。

选项 A、4  2
B、12  18
C、12  30
D、4  6

答案B

解析
转载请注明原文地址:https://kaotiyun.com/show/gFhp777K
0

最新回复(0)