#include<iostream>
#include<conio.h>
#include<math.h>
using namespace std;
int main()
{
float a,b,c,S,Area;
cout<<"enter the value of first side:"<<endl;
cin>>a;
cout<<"enter the value of second side:"<<endl;
cin>>b;
cout<<"enter the value of third side:"<<endl;
cin>>c;
S=(a+b+c)/2;
Area=sqrt(S*(S-a)*(S-b)*(S-c));
cout<<"The required area = "<<Area;
getch();
}
No comments:
Post a Comment