窗体上没有任何控件,编写下列程序: Option Base 1 Private Su
题型:单项选择题
问题:
窗体上没有任何控件,编写下列程序: 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 ThenFor i = 2 To 5If a(i)>m1 Then x = a (i) y= iEnd IfNext i End If Print x; y End Sub 执行程序后,按下回车键后输出的结果为
A.5 1
B.9 5
C.2 2
D.7 3