a(1)=2
For i=2 to 7
a(i)=a(i-1)*2-1
Next i
i = 1 : j = 7
Do While i <= j
m =(i + j)\ 2
If a(m)= Key Then Exit Do
If Key < a(m) Then j = m - 1 Else i = m + 1
Loop
若key的值为15,则程序执行结束后,j的值为( )
微信扫码预览、分享更方便