//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();
}
0 Questions:
Post a Comment