开荒
2023-12-27 16:48:06
发布于:浙江
7阅读
0回复
0点赞
#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
void amagi(double a,double b,double c){
    double s,p;
    p=(a+b+c)/2;
    
    s=sqrt(p*(p-a)*(p-b)*(p-c));
     printf("%.2f",s);
}
int main(){
    double a,b,c;
    cin >>a>>b>>c;
    amagi(a,b,c);
}
这里空空如也


有帮助,赞一个