单项选择题

在窗体上画一个命令按钮,其名称为Command1,然后编写如下事件过程:
Private Sub Command1_Click( )
Dim i As Integer,x As Integer
For i=l To 6
If i=1 Then x=i
lf i<=4 Then
x=x+1
Else
x=x+2
End lf
Next i
Print x
End Sub
程序运行后,单击命令按钮,其输出结果为

A.9
B.6
C.12
D.15