运行下面的程序段: For k=5 to 10 Step 2 k=k*2 Next k 则循环次数为:______。A.1B.2C.3D.4
运行下面的程序段: For k=5 to 10 Step 2 k=k*2 Next k 则循环次数为:______。
A.1
B.2
C.3
D.4
相关考题:
23 有如下程序段,该程序段循环的次数是______。 Dim i As Integer Dim j As Integer Dim k As Integer k=0 For i = 0 To 10 Step 3 For j = 1 To 5 If j > 3 Then k = k + 4: Exit For k=k+1 Print k Next j If i > 8 Then Exit For Next iA.9B.10C.11D.12
若k为整型,则下述while循环执行的次数为()。 k=10 while k>1: print(k) k = k/2 A.4B.10C.5D.死循环
下面程序的循环次数是:() int k=0; while(k<10) { if(k<1) continue; if(k==5) break; k++; }A.5B.6C.4D.死循环,不能确定循环次数
执行以下程序段,循环结束之后,变量k的值为()。 k= 1; while k <= 2 k =k + 1; end