组合题5 个小题
已作答 0 / 5
1#include<iostream>2#include<cmath>3using namespace std;4 5double f(double a,double b,double c){6 double s=(a+b+c)/2;7 return sqrt(s*(s-a)*(s-b)*(s-c));8}9int main(){10 cout.flags(ios::fixed);11 cout.precision(4);12 13 int a,b,c;14 cin>>a>>b>>c;15 cout<<f(a,b,c)<<endl;16 return 0;17}假设输入的所有数都为不超过 1000 的正整数,完成下面的判断题和单选题:
(2分)程序总是输出四位小数( )