有如下程序: #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 ",y); } 该程序的输出结果是()。
A.0
B.0.25
C.0.5
D.1
请帮忙给出正确答案和分析,谢谢!
有如下程序 main() {floatx=2.0,y; if(x<0.0)y=0.0; elseif(x>10.0)y=1.0/x; else
有如下程序 main() {floatx=2.0,y; if(x<0.0)y=0.0; elseif(x>10.0)y=1.0/x; els" />