#include <iostream.h>
#include <conio.h>
#include<math.h>
void main()
{
double s1, s2, s3, ar, s;
cout<< "Enter 3 sides :";
cin >> s1 >> s2 >> s3;
s = (s1+s2+s3)/2;
ar = sqrt( s * ( s - s1) * (s - s2) * (s - s3));
cout << "\n The Area of the triangle = " << ar;
getch();
}
No comments:
Post a Comment