Be the first user to complete this post
|Add to List|
Find the Area of a Triangle Given Three Sides – Heron’s Formula
Objective – Given three sides of the triangle, write a program to find the area of a triangle.
Heron’s Formula for finding area of triangle:
- First find the semi-parameter of a triangle using the formula, s= (a+b+c)/2 where a, b, c are three sides of the triangle and s will be the semi-parameter.
- Then use the below formula to get the area of triangle.
- Area = √s(s-a)(s-b)(s-c)
Area of triangle : 7.826237921249264 sq uni