/*已知三边求三角形的面积需要用海伦定理*/
#include<iostream.h>
#include<math.h>
double s(double a,double b,double c)
{
double s=(a+b+c)/2;
double A=sqrt(s*(s-a)*(s-b)*(s-c));
return A;
}
void main()
{
double d[7]={52.1,57.2,43.5,51.9,33.4,68.2,71.9};
double sum=s(d[0],d[4],d[5])+s(d[5],d[1],d[6])+s(d[6],d[2],d[3]);
cout<<sum;
}