单项选择题
有以下程序:
#include <stdio.h>
main()
int y=9;
for(; y>0; y--)
if(y%3==0) printf("%d", --y);
程序的运行结果是( )。
A) 741
B) 963
C) 852
D) 875421
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
以下程序的输出结果是( )。 #include<stdio.h> main() int a, i; a=0; for(i=1; i<5; i++) switch(i) case 0: case 3:a+=2; case 1: case 2:a+=3; default:a+=5; prinrf( %d n , a);
A) 31
B) 13
C) 10
D) 20
点击查看答案&解析
单项选择题
如下程序的输出结果是( ) #include<stdio.h> main() float x=2.0, y; if(x<0.0) y=0.0; else if(x<10.0) y=1.0 x; else y=1.0; printf( %f n , y);
A) 0.000000
B) 0.250000
C) 0.500000
D) 1.000000
点击查看答案&解析
相关试题
A
t[i][i]
下列给定程序中,函数fun和funx的功能是:...
规定输入的字符串中只包含字母和*号。编写...
sum=0