网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下面各程序段中,()能在一行中输出五个&39;*&39;
A.I:=0;
repeat
write(&39;*&39;);
I:=I+1
until I=5
B.I:=0;
repleat
write(&39;*&39;)
until I=5
C.I:=0;
repeat
write(&39;*&39;);
I:=I-1
until I=5
D.I:=0;
repeat
writeln(&39;*&39;)
I:=I+2
until I=5
参考答案
更多 “ 下面各程序段中,()能在一行中输出五个*A.I:=0;repeatwrite(*);I:=I+1until I=5B.I:=0;repleatwrite(*)until I=5C.I:=0;repeatwrite(*);I:=I-1until I=5D.I:=0;repeatwriteln(*)I:=I+2until I=5 ” 相关考题
考题
有以下程序:main(){ char *p[]={"3697","2584"}; int i,j; long num=0; for(i=0;i2;i++) {j=0;while(p[i][j]!=’\0’){ if((p[i][j]-’0’)%2= =0)num=10*num+p[i][j]-’0’; j+=2;} } printf("%d\n",num);}程序执行后的输出结果是( )。A.35 B.37C.39 D.28
考题
有以下程序 main() { char *p[]={"3697","2548"}; int i,j; long num=0; for(i=0;i<2;i++) {j=0; while(p[i][j]!='\0') { if((p[i][j]-'0')%2) num=10*num+p[i][j]-'0'; j+=2; } } printf("%d\n",num); } 程序执行后的输出结果上______。A.35B.37C.39D.3975
考题
有以下程序: main() {char*p[]={"3697","2584"}; int i,j;long num=0; for(i=0;i<2;i++) {j=0; while(p[i][j]!='\0') {if((p[i][j]-'0')%2)num=10*num+p[i][j]-'0'; j+=2; } } printf("%d\n",num); } 程序执行后的输出结果是( )。A.35B.37C.39D.3975
考题
下列程序的输出结果是( )。 #includestdio.h main( ) { int i,S=0; for(i=1;i10;i++) if(!(i%2)&&!(i%3))s+=i; printf("%d\n",s); }A.4B.39C.45D.6
考题
下列程序的输出结果是( )。#includestdio.hmain( ){ int i,s=0;for(i=1;i10;i++)if(!(i%2)&&!(i%3))s+=i;printf(%d\n,s);}A.A.4B.39C.45D.6
考题
已知字符0的ASCII代码值的十进制数是48,以下程序 #include<stdio.h> main() { union{ int i[2]; long k; char c[4]; }r,*s=r; s->i[0]=0x39; s->i[1]=0x38; printf("%xn",s->c[0]); } 其输出结果是()。A.39B.9C.38D.8
考题
【单选题】已知字符0的ASCII码为十六进制的30,下面程序的输出是___________。 main() { union {unsigned char c; unsignedint i[4]; } z; z.i[0]=0x39; z.i[1]=0x36; printf("%cn",z.c);}A.6B.9C.0D.3
考题
【填空题】已知字符0的ASCII码为十六进制的30,下面程序的输出是___________。 main() { union {unsigned char c; unsignedint i[4]; } z; z.i[0]=0x39; z.i[1]=0x36; printf("%cn",z.c);}
考题
已知字符0的ASCII码为十六进制的30,下面程序的输出是___________。 int main() { union { unsigned char c; unsigned int i[4]; } z; z.i[0]=0x39; z.i[1]=0x36; printf("%cn",z.c); return 0; }
热门标签
最新试卷