问题
单项选择题
在窗体上画一个名称为Command1的命令按钮,然后编写如下程序:
Private Sub Command1_Click( )
Static x As Integer
Static y As Integer
Cls
y = 1
y = x + 2
x = 4 + y
Print x, y
End Sub
程序运行时,三次单击命令按钮Command1后,窗体上显示的结果为________。
A.3 4
B.18 14
C.15 14
D.7 12
答案
参考答案:B