Ask Question
6 February, 13: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.

+1
Answers (1)
  1. 6 February, 13:47
    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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers