运行下面的程序段: Fork=5to 10 Step 2 k=k*2 Next k 则循环次数为:______。A.1B.2C.3D.4
运行下面的程序段: Fork=5to 10 Step 2 k=k*2 Next k 则循环次数为:______。
A.1
B.2
C.3
D.4
相关考题:
下列程序段的执行结果为 ______。 N=10 For K=N To 1 Step-1 X=Sqr(K) X=X-2 Next K Print X-2A.-3B.-1C.1D.1.16228
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
下列程序段的执行结果为 ______。 N=10 For K=N To 1 Step -1 X=Sqr(K) X=X-2 Next K Print X-2A.-3B.-1C.1D.1.16227765
执行以下程序段,循环结束之后,变量k的值为()。 k= 1; while k <= 2 k =k + 1; end