【单选题】对窗体编写如下代码: Option Base 1 Private Sub Form_KeyPress(KeyAscii As Integer) a = Array(3, -4, 2, 6, 5) m1 = a(1): m2 = 1 If KeyAscii = 13 Then ...... End If Print m1 Print m2 End Sub 此程序的功能是求数组元素的最大值,并输出最大...
A.
For i = 0 To 4 If a(i) > m1 Then m1 = a(i) m2 = i End If Next I
B.
For i = 2 To 5 If a(i) > m1 Then m1 = a(i) m2 = i End If Next I
C.
For i = 2 To 5 If a(i) > m1 m1 = a(i) m2 = i End If Next I
D.
For i = 2 To 5 If a(i) > m1 then m1 = a(i) m2 = i End Next I