有如下程序 #include<iostream.h> void main( ) { float x=2.O,y; if(x<O.0)y=0.0; else if(x<10.O)y=1.0/x; else y=1.0; cout<<y; } 该程序的输出结果是
A.0
B.0.25
C.0.5
D.1
第1题:
有如下程序 #include<iostream.h> void 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; cout < < y; } 该程序的输出结果是
A.0
B.0.25
C.0.5
D.1
第2题:
有如下程序: #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
B.0.25
C.0.5
D.1
第3题:
有如下程序: #include<iostream.h> void 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; cout<<y; } 该程序的输出结果是
A.0
B.0.25
C.0.5
D.1.0
第4题:
有如下程序 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
B.0.25
C.0.5
D.1
第5题:
有如下程序 main() { float x=2.0,y; if(x<0.0)y=0.0; else if(x<10.0)y=1.0/x; elsey=1.0; printf("%f\n",y); } 该程序输出结果是______。
A.0
B.0.25
C.0.5
D.1