下面程序段运行后,变量X的值为【 】。
Dim x AS Integer
Dim I AS Integer
x=0
for I=0 to 50 step 10
X=X+I。
next I
Print X
第1题:
执行下面的程序段后,变量a的值为______。
a=0
For i=2.7 To 5.9 Step 0.5
a=a+1
Next i
第2题:
执行以下程序段
Dim x As Integer,i As Integer
x=0
For i=20 To 1 Step-2 x=x+i\5
Next i
后,x的值为
A.16
B.17
C.18
D.19
第3题:
执行以下程序段 Dim x As Integer, i As Integer x=0 For i=20 To Step -2 x=x+i\5 Next i 后,x的值为
A.16
B.17
C.18
D.19
第4题:
执行下列程序段后,x的值为______。
Dim x As Integer, i As Integer
x=0
For i=20 To 1 Step -2
x=x +i\5
Next i
第5题:
执行以下程序段后,x的值为______。
Dim x As Integer,i As Integer
x=0
For i=20 To 1 Step -2
x=x+i\5
Next i