#include "stdio.h"
#include <math.h>
#define s(a,b,c) (a+b+c)/2.0
#define area(a,b,c,S) sqrt(s(a,b,c)*(s(a,b,c)-a)*(s(a,b,c)-b)*(s(a,b,c)-c))
main()
{
double s,area;
float x,y,z;
printf("Please input three numbers:");
scanf("%f %f %f",&x,&y,&z);
if(x+y>z && x+z>y && z+y>x)
printf("\narea=%f",area(x,y,z,s));
else
printf("\n请正确输入边长!");
}