'随机产生包含10个整型元素的升序序列,依次存入数组a,代码略
i = 1: j = 10: s = "": c = 0
key = Val(Text1.Text)
Do While i <= j
m = (i + j)\ 2
c = c + 1
s = s + Str(a(m))
If a(m) > key Then j = m - 1 Else i = m + 1
Loop
在文本框 Text1中输入待查找数,执行该程序后,下列说法不正确的是( )
微信扫码预览、分享更方便