问题
单项选择题
在窗体上画一个名称为Commandl的命令按钮,然后编写如下程序:
Private Sub Command1_Click()
Static x As Integer
Stati cy As Integer
y=1
y=y+5
x=x+5
Printx;y
End Sub
程序运行时,三次单击命令按钮Commandl后,窗体上显示的结果为()
A.1516
B.156
C.1515
D.56
答案
参考答案:B