Design an algorithm for area of a triangle


Discuss the following:

Q: Suppose a, b, and c denote the lengths of the sides of a triangle. Then the area of the triangle can be calculated using the formula:

√s(s - a)(s - b)(s - c),

Where s = (1/2)(a + b + c). Design an algorithm that uses this formula to find the area of a triangle. What information do you need to find the area?

Solution Preview :

Prepared by a verified Expert
Data Structure & Algorithms: Design an algorithm for area of a triangle
Reference No:- TGS01937970

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)