测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A31114. 下列代码中,输出结果是( )#include<iostream>using namespace std;int main(){ double a=0.9; double b=1.0; if(((b-a)==0.1)) { cout<<"Equal"<<endl; } else { cout<<"Not equal"<<endl; }}

单选题 中等

题目描述

下列代码中,输出结果是(    )

#include<iostream>

using namespace std;

int main()

{

      double a=0.9;

      double b=1.0;

      if(((b-a)==0.1))

      {

            cout<<"Equal"<<endl;

      }

      else

      {

            cout<<"Not equal"<<endl;

      }

}

选项(单选)

上一题 下一题