Program: 136
If the lengths of the sides of a triangle are denoted by a, b, c, then area of triangle is given by
area = √(S(S-a)(S-b)(S-c))
Where, S = (a+b+c)/2.
Write a c function to calculate the area of the triangle.
Output:
Enter a: 3 Enter b: 2 Enter c: 4 Area of Triangle: 2.904737
Leave a Comment