Given the three side lengths a, b, and c of a triangle, calculate its area using Heron's formula and round to 4 decimal places.
Heron's formula:
s = (a + b + c) / 2 Area = sqrt(s * (s-a) * (s-b) * (s-c))
Example:
Input: a=3, b=4, c=5 Output: 6.0
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers17
Suggested Problems
-
Triangle Area Using Heron's Formula
17 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!