[单选题]

在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程:

Private Sub Command1_Click()

Static x As Integer

C.ls

F.or i=1 To 2

y=y+x

x=x+2

Next

Print x,y

E.nd Sub

程序运行后,连续三次单击Command1按钮后,窗体上显示的是( )。

A.4 2

B.12 18

C.12 30

D.4 6

参考答案与解析: