单项选择题
有以下程序
#include<stdio.h>
main()
int i=5;
do
if(i%3==1)
if(i%5==2)
(printf("%d",i);break;
i++;
while(i!=0);
printf("\n"1);
程序的运行结果是()。
A.*7
B.*3*5
C.*5
D.*2*6
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
若有以下程序 #include<stdio.h> main() int a=6,b=0,c=0; for(;a;) b+=a;a-=++c; printf( %d,%d,%d n ,a,b,c); 则程序的输出结果是()。
A.0,14,3
B.1,14,3
C.0,18,3
D.0,14,6
点击查看答案&解析
单项选择题
若变量已正确定义 for(x=0,y=0;(y!=99&&x<4);x++) 则以上for循环______。
A.执行4次
B.执行3次
C.执行无限次
D.执行次数不定
点击查看答案&解析
相关试题
有以下程序 #include<stdio.h> #inc...
若有定义语句: char s[10]= 12...
若有定义语句: char*s1= OK ,*s2...
若有以下定义和语句 #include<stdio.h...
有以下程序 #include<stdio.h> char...