网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

执行语句序列 int i=0; while(i<25) i+=3; printf("%d",i); 输出结果是().

A.24

B.25

C.26

D.27


参考答案和解析
C 解析:本题考核循环语句while的使用。while循环8次后i的值变为24,符合循环条件进入循环体,经过自我赋值后i的值变为27,不符合循环条件,结束循环执行输出语句。
更多 “执行语句序列 int i=0; while(i<25) i+=3; printf("%d",i); 输出结果是().A.24B.25C.26D.27” 相关考题
考题 下列程序执行后的输出结果是void func1(int i);void func2(int i);char st[]="hello,friend!";void func1(int i){ printf("%c",st[i]);if(i3){i+=2;func2(i);}}void func2(int i){ printf("%c",st[i]);if(i3){i+=2;func1(i);}}main(){ int i=0; func1(i); printf("\n");}A.helloB.helC.hloD.hlm

考题 执行下列语句序列: inti=0;while(i25)i+=3;cout<<i; 输出结果是( )。A.24B.25C.27D.28

考题 以下程序的输出结果是 ( ) main( ) { char ch [3][4]={"123","456","78"},*p [3];int i; for(i=0;i<3;i+ +)p[i]=ch[i]; for(i=0;i<3;i+ +)printf("%s",p[i]); }A.123456780B.123 456 780C.12345678D.147

考题 有以下程序: maln() { int i,s=0,t[]={1,2,3,4,5,6,7,8,9}; for(i=0;i<9;i+=2)s+=*(t+i); printf("%d\n",s); } 程序执行后的输出结果是( )。A.45B.20C.25D.36

考题 下面程序的输出结果是( )。main(){int i=0,a=0;while(i<20){ for(;;){ if((i%10)==0)break;else i--;}i+=11;a+=i;}printf("%d\n",A);}

考题 有下列程序:main{int i,s=0,t[]={1,2,3,4,5,6,7,8,9};for(i=0;i9;i+=2)s+=*(t+i);printf(9;i+=2)s+=*(t+i);printf(%d\n,s);}程序执行后的输出结果是( )。A.A.45B.20C.25D.36

考题 执行下列语句序列: int i=0;while(i<25)i+=3;cout<<i; 输出结果是( )。A.24B.25C.27D.28

考题 下列程序执行后的输出结果是______。A.helloB.helC.hloD.hlm void func1 (int i); void func2 (int i); char st[]="hello,friend!"; void func1(int i) { printf("%c",st[i]); if(i<3){ i+=2;func2(i); } } void func2 (int i) { printf("%c",st[i]); if(i<3){ i+=2;func1(i); } } main() { int i=0;func1(i);printf("\n");}

考题 下列程序执行后的输出结果是 void funcl(int i); void func2(int i); char st[]="hello,friend!"; void funcl(int i) {printf("%c",st[i]); if(i<3){i+=2;func2(i);}} void func2(int i) { printf("%c",st[i]); if(i<3){i+=2;func1(i);}} main() {int i=A.helloB.helC.hloD.hlm

考题 执行语句序列 iht i=0;while(i<25)i+=3;cout<<i; 输出结果是A.24B.25C.27D.28

考题 执行语句序列 inti=0;while(i<25)i+=3;cout<<i; 输出结果是A.24B.25C.27D.28

考题 下列程序执行后的输出结果是()。includevoid func1(int i);void func2(int i);char st[ 下列程序执行后的输出结果是( )。 #include<stdio.h> void func1(int i); void func2(int i); char st[]="hello,friend!"; void funcl(int i) { printf("%c",st[i]); if(i<3){i+=2;func 2(i);} } void func 2(int i) { printf("%c",st[i]); if(i<3){i+=2;funcl(i);} } main() { int i=0; funcl(i);printf("\n"); }A.helloB.helC.hloD.hlm

考题 下列程序执行后的输出结果是( )。 void func1 (int i); void func2(int i); char st[]="hello,friend!"; void func1 (int i) { printf("%c",st[i]); if(i<3){i+=2;func2(i);} } void func2(int i) { printf("%c",st[i]); if(i<3){i+=2;func1(i);}A.helloB.helC.holD.hlm

考题 下列程序的输出结果是______。include main(){ int i=1,j=3; printf("%d,",i++); {int 下列程序的输出结果是______。#include <stdio.h>main (){ int i=1,j=3; printf("%d,",i++); { int i=0; i+=j*2; printf("%d,%d,",i,j); } printf("%d,%d\n",i,j);}A.1,6,3,1,3B.1,6,3,2,3C.1,6,3,6,3D.1,7,3,2,3

考题 有以下程序include main(){ int.i=0,a=0;while(i 有以下程序 #include <stdio.h> main() { int.i=0,a=0; while(i<20) { for(;;) { if((i%10)==0) break; else i--; } i+=11; a+=i; } printf("%d\n",a) ; } 程序运行后的输出结果是( )A.21B.32C.33D.11

考题 有以下程序: #includestdio.h main { int i=0,a=0; while(i20) { for(;;) {if((i%10)==0)break: else i--; } i+=11: a+=i: } printf("%d\n",a); } 程序的输出结果是( )。A.62B.63C.33D.32

考题 执行下列语句序列:inti=0;while(i25)i+=3;couti;输出结果是( )。A.24B.25C.27D.28

考题 有下列程序void func1(int i);void func2(int i);char st[ ]="hello,friend! ";void func1(int i){ printf("%c",st[i]); if(i3){i+=2;func2(i);}}void func2(int i){ printf("%c",st[i]); if(i3){i+=2;func1(i);}}main(){ int i=0;func1(i); printf("\n");}执行后的输出结果是A.hello B.helC.hlo D.hlm

考题 下列程序 void func1(int i); void func2(int i) char st[]="hello,friend!"; void funcl(int i) { printf("%c",st[i]); if(i<3){i+=2;func2(i);} } void func2(int i) { printf("%c",st[i]); if(i<3){i+=2;funcl(i);} } main() { int i=0;funcl(i);printf("\n");} 执行后的输出结果是( )A.helloB.helC.hloD.hlrn

考题 执行语句序列 int i=0;while(i<25)i+=3;cout<<i; 输出结果是( )。A.24B.25C.27D.28

考题 有以下程序:#includemain{ int i=0,a=0;while(i20){ for(;;){ if((i%10)==0) break;else i--;}i+=11;+=i;}printf(%d\n,a);}程序的输出结果是( )。A.62B.63C.33D.32

考题 以下程序的输出结果是()includemain(){ int i=0,a=0;while(i 以下程序的输出结果是( ) #include<stdio.h> main() { int i=0,a=0; while(i<20) { for(;;){if((i%10)==0)break;else i--;} i+=11;a+=i; } printf("%d\n",A) ; }A.21B.32C.33D.11

考题 以下程序的输出结果是( )。includemain()int i=0,a=0;while(i 以下程序的输出结果是( )。#includemain()int i=0,a=0;while(ifor(;;)if((i%10)==0)break;else i--;i+=11;a+=I;printf("%d\n",a);A.21B.32C.33D.11

考题 下列程序执行后的输出结果是 ( ) main( ) {int a[3][3],* p,i; p= a[0][0]; for(i=0;i<9;i+ +)p[i]=i+1; printf("%d\n",a[1][2]); }A.3B.6C.9D.随机数

考题 有程序: main( ) { int x,i; for(i=1;i<50;i+ +) { x=i; if(+ +%2==0) if(x%3==0) if(x%7==0) printf("%d",i); } } 输出结果是 ( )A.28B.27C.42D.41

考题 以下程序输出结果是 include main ( ){int i=0,a=0; while ( i 以下程序输出结果是 #include <stdio.h> main ( ) { int i=0,a=0; while ( i<2 0 ) { for(;;) { if ((i%10) ==0) break; else i--; } i+=11; a+=i; } print f ( "%d\n" , a); }A.21B.32C.33D.11

考题 以下程序的输出结果是includemain(){int i=0,a=0; while(i 以下程序的输出结果是 #include<stdi0.h> main() { int i=0,a=0; while(i<20) { for(;;) { if((i%10)==0)break; elsei--; } i+=11;a+=i; } printf(“%d\n”,A) ; }A.21B.32C.33D.11

考题 单选题执行语句序列int i=0;while(i25)i+=3;cout A 24B 25C 27D 28