关于三角形面积公式的
#include<stdio.h>
#include<math.h>
void main()
{
double a, b, c, s, area;
scanf_s("%lf,%lf,%lf", &a, &b, &c);
s = 1.0 / 2 * (a + b + c);
area = sqrt(s*(s - a)*(s - b)*(s - c));
printf("a=%7.2lf,b=%7.2lf,c=%7.2lf,s=%7.2lf\n", a, b, c, s);
printf("area=%7.2lf\n", area);
system("pause");
}