The area of an arbitrary triangle can be computed using the formula
![]()
where a, b, and c are the lengths of the sides, and s is the semiperimeler.
![]()
Write a voidfunction that computes the area and perimeter (not the semi- perimeter) of a triangle based on the length of the sides. The function should use five parameters—three value parameters that provide the lengths of the edges and two reference parameters that store the computed area and perimeter. Make your function robust. Note that not all combinations of a, b, and c produce a triangle. Your function should produce correct results for legal data and reasonable results for illegal combinations.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.