#CH013. 整数与浮点数的混合运算

    ID: 239 Type: Objective Tried: 4 Accepted: 0 Difficulty: 10 Uploaded By: Tags>信息学奥赛导学(C++语言基础入门)

整数与浮点数的混合运算

阅读程序,填写对应的输出结果

cout << 2 + 1.7 << endl; {{ input(1) }}

cout << 1 - 0.6 << endl; {{ input(2) }}

cout << 3 * 2.1 << endl; {{ input(3) }}

cout << 5 / 2 + 0.5 << endl; {{ input(4) }}

cout << 2.0 * 5 / 2 << endl; {{ input(5) }}

cout << 1.0 * 7 / 2 << endl; {{ input(6) }}

  1. cout << 1e9 - 5e8 << endl;

    {{ select(1) }}

  • 1e8
  • 4e8
  • 5e8