i=1:j=10:key=Val(Text1.Text) Do While i <= j m = (i + j + 1) \ 2 If a(m) >= key Then j = m - 1 Else i = m + 1 End If Loop (程序 a) | i=1:j=10: key=Val(Text1.Text) Do While i <= j m = (i + j + 1) \ 2 If a(m) > key Then j = m - 1 Else i = m + 1 End If Loop (程序b) |
以下说法正确的是( )