Wednesday, 27 August 2014

Area of Triangle Solution in c plusplus

Leave a Comment

//Area of Triangle    base × height/2
#include<iostream>
#include<conio.h>
#include<math.h>
using namespace std;
int main()
{
double pi=3.1415926535,base,height,Ans;
cout<<"Enter Base = ";
cin>>base;
cout<<"Enter Height  = ";
cin>>height;
Ans=base*height/2;
cout<<"Area of Triangle = "<<Ans;
getch();
}
If You Enjoyed This, Take 5 Seconds To Share It