Ask Question
13 June, 15:40

Write a method called trianglearea that accepts the three side lengths of a triangle as parameters and returns the area of a triangle with those side lengths. for example, the call trianglearea (8, 5.2, 7.1) should return 18.151176098258745.

+2
Answers (1)
  1. 13 June, 17:17
    0
    Example method:

    double trianglearea (double a, double b, double c) {

    double s=a+b+c;

    return Math. sqrt (s * (s-a) * (s-b) * (s-c));

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a method called trianglearea that accepts the three side lengths of a triangle as parameters and returns the area of a triangle with ...” in 📙 Mathematics if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers