//给三角形三边并输出面积
#include<stdio.h>
#include<math.h>
int main() {
double a, b, c,area;
scanf_s("%lf%lf%lf", &a, &b, &c);
double s = (a + b + c) / 2;
area = sqrt(s * (s - a) * (s - b) * (s - c));
printf("%f\n",area );
return 0;
}
//给三角形三边并输出面积
最新推荐文章于 2024-09-06 10:38:06 发布