设x和y均为int型变量,则执行下面的循环程序后,y的值为()。for(y=1,x=1;y<=50;y++){ if (x>=10)break;if (x%2==1){x+=5;continue;}x-=3;}
查看答案
有如下程序,输入数据:12345 678后,x的值是⑴(),y的值是⑵() 。#includemain(){ intx;float y;scanf("%3d%f",&x,&y);}
A. 12345.000000
B. 1234545678.000000
C. 45123.000
D. 345678.000000
.选择出合法的if语句(设int x,a,b,c;)() 。
A. if(a==b)x++;
B. if(a= C. if(a<>b)x++;
D. if(a=>b)x++;
有以下程序:#include #define N 6main(){ char c[N];int i=0;for(;ibcdef程序的输出结果是()。
A. abcdef
B. a bcd
C. ab cd
D. abcdef
阅读程序,写出运行结果。main(){int a,b,c;printf("input a b c:");printf("ABC=%d\n",scanf("%3d-%2d-%4d",&a,&b,&c));printf("a=%d,b=%d,c=%d\n",a,b,c);}