Ask Question
24 May, 04:43

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.

+4
Answers (1)
  1. 24 May, 05:32
    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?
Find 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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers