We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This is also one of the same way
double area(triangle tr)
{
double s=(tr->a+tr->b+tr->c)/2.0;
if((tr->a+tr->b)>tr->c&&(tr->b+tr->c)>tr->a&&(tr->a+tr->c)>tr->b)
{
double area=sqrt(s(s-tr->a)(s-tr->b)(s-tr->c));
return area;
Small Triangles, Large Triangles
You are viewing a single comment's thread. Return to all comments →
This is also one of the same way double area(triangle tr) { double s=(tr->a+tr->b+tr->c)/2.0; if((tr->a+tr->b)>tr->c&&(tr->b+tr->c)>tr->a&&(tr->a+tr->c)>tr->b) { double area=sqrt(s(s-tr->a)(s-tr->b)(s-tr->c)); return area;
}
void sort_by_area(triangle* tr, int n) {
}