求三角形面积
#include<math.h>#include<stdio.h>
#define s(a,b,c) (a+b+c)/2
#define area(a,b,c) s(a,b,c)*(s(a,b,c)-a)*(s(a,b,c)-b)*(s(a,b,c)-c)
void main()
{
float a,b,c,S;
scanf("%f %f %f",&a,&b,&c);
S=sqrt(area(a,b,c));
printf("S=%f\n",S);
getch();
}