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

28 Solutions

24 Solvers

Last Solution submitted on Jun 06, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers24

Suggested Problems

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!