
#include<stdio.h>
#include<math.h>
int main()
{
double a,b,c,S=0,x=0;
scanf("%lf %lf %lf",&a,&b,&c);
if(a+b>c&&b+c>a&&a+c>b)
{
x=(a+b+c)/2.0;
S=sqrt(x*(x-a)*(x-b)*(x-c));
printf("%.3f\n",S);
}
else
printf("不能构成三角形\n");
return 0;
}
#include<math.h>
int main()
{
double a,b,c,S=0,x=0;
scanf("%lf %lf %lf",&a,&b,&c);
if(a+b>c&&b+c>a&&a+c>b)
{
x=(a+b+c)/2.0;
S=sqrt(x*(x-a)*(x-b)*(x-c));
printf("%.3f\n",S);
}
else
printf("不能构成三角形\n");
return 0;
}
