有如下程序
#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;
}
该程序的输出结果是( )。
题库:计算机等级考试
类型:最佳选择题
时间:2017-07-03 17:31:50
免费下载:《单选题》Word试卷
有如下程序
#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.8K
B.16K
C.32K
D.64K
本题关键词:程序,有序镜检,工程施工程序,复苏程序,工作程序,建设程序,程序变更,程序冲突,点火程序,生产程序;