A-A+

下列程序的输出结果是______。main(){ float x=2.0 y; if(x<0

2022-08-05 22:18:08 问答库 阅读 172 次

问题详情

下列程序的输出结果是______。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("%fn",y);}
A.0
B.0.25
C.0.5
D.1请帮忙给出正确答案和分析,谢谢!

参考答案

正确答案:C

考点:程序