Notice: Undefined index: name in /usr/www/lib/views/home/viewtitle.html on line 188
-阅读程序 第 16 题
#include <iostream>
#include <cmath>
using namespace std;

double f(double a, double b, double c) {
    double s = (a + b + c) / 2;
    return sqrt(s * (s - a) * (s - b) * (s - c));
}

int main() {
    cout.flags(ios::flxed);
    cout.precision(4);

    int a, b, c;
    cin >> a >> b >> c;
    cout << f(a, b, c) << endl;
    return 0;
}
假设输入的所有数都为不超过 1000 的正整数,完成下面的判断题和单选题判断题:
● 判断题
第 1 题 (2 分) 当输入为“2 2 2”时,输出为“1.7321”。( )
第 2 题 (2 分) 将第 7 行中的“(s - b)*(s - c)”改为“(s - c)*(s - b)” 不会影响程序运行的结果。( )
第 3 题 (2 分) 程序总是输出四位小数。( )
● 单选题
第 4 题 当输入为“3 4 5”时,输出为( )。
第 5 题 当输入为“5 12 13”时,输出为( )

解答部分以后会开放。