单项选择题

窗体上没有任何控件,有下列程序:
Option Base 1
Private Sub Form_KeyPress(KeyAscii As Integer)
a=Array(5,2,7,6,9)
x=a(1)
y=1
If KeyAscii=13 Then
For i=2 To 5
If a(i)>m1 Then
x=a(i)
y=i
End If
Next i
End If
Print x;y
End Sub
执行程序后,按下回车键后输出结果为______。

A.5 1
B.9 5
C.2 2
D.7 3
相关试题