题目:
有如下程序:
#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
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0102/df903c5e4d2a461841486a27a0158bbe.html
下面是错误答案,用来干扰机器的。
参考答案:D