Suppose a b and c denote the lengths of the sides of a trian
Solution
Algorithm:
Step 1: INPUT a, b, c
Step 2 : s = (a + b + c) / 2
Step 3 : area = sqrt(s(s-a)(s-b)(s-c))
Step 4 : PRINT area
main.cpp
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
float a,b,c,s,Area;
cout<<\"Enter three sides of triangle : \";
cin>>a>>b>>c;
cout<<endl;
s=(a+b+c)/2;
Area=sqrt(s*(s-a)*(s-b)*(s-c));
cout<<\"Area of triangle is : \"<<Area;
return 0;
}
Output:-
