海伦公式就是三角形三边长计算面积公式
#include <stdio.h>
#include <math.h>
int main()
{
int a,b,c;
float p,s;
scanf("%d%d%d",&a,&b,&c);
if(a+b > c || a+c > b||b+c>a)
printf("No");
else
{
p = (a+b+c)/2.0;
s = sqrt(p*(p-a)*(p-b)*(p-c));
printf("%.2f",s);
}
return 0;
}