有如下程序 #include <stdio.h> int main(void) { float x=2.0,y; if(x<0.0) y="0.0;"
有如下程序 #include <stdio.h> int main(void) { float x=2.0,y; if(x<0.0) y="0.0;" else printf("%f\n",y); return 0; } 该程序的输出结果是()。> A、1.000000
B、0.250000
C、0.500000
D、0.000000
有如下程序 #include <stdio.h> int main(void) { float x=2.0,y; if(x<0.0) y="0.0;" else printf("%f\n",y); return 0; } 该程序的输出结果是()。> A、1.000000
B、0.250000
C、0.500000
D、0.000000
第1题
B、0.250000
C、0.500000
D、1.000000
第2题
A、2
B、2.5
C、2.5000
D、1
第3题
第4题
第5题
B、0.500000
C、1. 000000
D、0.250000
第6题
第7题
第8题
A、3,4
B、4,3
C、2,3
D、3,2
第9题
A、18.000000 2
B、18 2
C、18 2.000000
D、18.000000 2.000000
第10题
求下列分段函数的值,正确的程序有()。
A、#include <stdio.h> #include <math.h> int main( ) { float x,y; scanf("%f",&x); if (x<10) y="3-fabs(x);" else printf("y="%f\n",y);" return 0;> B、#include <stdio.h> #include <math.h> int main( ) { float x,y; scanf("%f",&x); if (x<10) y="3-fabs(x);" if (x>=10) y=sqrt(x)-2; printf("y=%f\n",y); return 0; }
C、#include <stdio.h> #include <math.h> int main( ) { float x,y; scanf("%f",&x); if (x<10) y="3-fabs(x);" else if (x>=10) y=sqrt(x)-2; printf("y=%f\n",y); return 0; }
D、#include <stdio.h> #include <math.h> int main( ) { float x,y; scanf("%f",&x); y=3-fabs(x); if (x>=10) y=sqrt(x)-2; printf("y=%f\n",y); return 0; }
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!