Area of Triangle Code

#include<iostream>
#include<conio.h>
#include<math.h>
using namespace std;
int main()
{
float a,b,c;
float side,area;
cout<<"Enter Values First Side";
cin>>a;
cout<<"Enter Values Second Side";
cin>>b;
cout<<"Enter Values Third Side";
cin>>c;
side=(a+b+c)/2.0;
area=sqrt(side*(side-a)*(side-b)*(side-c));
cout<<"Area of Triangle is:"<<area;
getch();

}


Copy and Run IT


Popular posts from this blog

Information About Digital Marketing

Graphics Desing

5 Successful and Effective Ways to Manage Stress in Business