Given the length of three sides of a triangle we can find the area of any triangle by using heron's formula.
Let A, B and C be the length of three sides of a triangle.
Calculate the semi perimeter of the triangle.
Semi-Perimeter of triangle(S) = (A + B + C)/2Now, we can calculate the area of triangle using below mentioned formula.
Area of Triangle = √ S(S-A)(S-B)(S-C)) Where, S is the semi-perimeter that we calculated in first step.
Source :
http://www.techcrashcourse.com/2015/03/c-program-to-calculate-area-of-any-triangngled-triangle.htmlhttp://www.techcrashcourse.com/2015/03/c-program-to-calculate-area-of-right-angled-triangle.html