<span style="font-family: Arial, Helvetica, sans-serif;">/*作者:吴红斌</span>
<span style="font-family: Arial, Helvetica, sans-serif;">日期:2016.3.2</span>
<span style="font-family: Arial, Helvetica, sans-serif;">教师:曾辉*/</span>
<span style="font-family: Arial, Helvetica, sans-serif;">#include<stdio.h></span>
#include<math.h>
void main()
{
int a,b,c;
double p, s;
scanf("%d%d%d",&a,&b,&c);
if(a+b<=c||a+c<=b||b+c<=a)
printf("不是三角形!\n");
else
{
p=(a+b+c)/2.0;
s=sqrt(p*(p-a)*(p-b)*(p-c));
printf("%lf\n",s);
}
}