执行以下程序段Dim x As Integer,i As Integerx=0For i=20 To 1 Step-2 x=x+i\5Next i后,x的值为A.16B.17C.18D.19
执行以下程序段
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
相关考题:
执行以下程序段 Dim i As Integer,X As Integer x=0 For i=20 To 1 Step -2 x=x+i\5 Next Print x 后,x的值为______。A. 16B.17C.18D.19
执行以下程序段Dim i As Integer, x As Integerx = 0For i = 20 To 1 Step -2x = x + i \ 5NextPrint x后,x的值为( )。A.16B.17C.18D.19
以下程序段的输出结果是【 】。int x, i ;for (i=1; i<=100; i++){ x=i;if (++x%2==0)if (++x%3==0)if(++x%7==0) cout<<i<<' , ';}
执行以下程序后i的值为()。main(){int x,i;for(i=l,x=1;i=20)break; if(x%5==1){x 执行以下程序后i的值为( )。 main() { int x,i; for(i=l,x=1;i<=36;i++) { if(x>=20) break; if(x%5==1) { x+=5;continue; } x-=5; ) printf("%d",i); }A.3B.4C.5D.6
【单选题】以下程序段运行后x的值为()。 int a[8]={1,2,3,4,5,6,7,8},i,x=0; for(i=0;i<8;i++,i++) x=x+a[i];A.36B.16C.20D.18
以下程序段运行后x的值为()。 int a[8]={1,2,3,4,5,6,7,8},i,x=0; for(i=0;i<8;i++,i++) x=x+a[i];A.36B.16C.20D.18
11、下面哪些定义是类型正确的?A.f :: (Integer, Integer) - Float f (x,y) = x / yB.f :: (Integer, Integer) - Float f (x,y) = (fromInteger x) / (fromInteger y)C.f :: (Integer, Integer) - Float f (x,y) = 3*x + yD.f :: (Integer, Integer) - Integer f (x, y) = 3*x + y