Friday, 16 September 2016

Area of triangle





#include < iostream.h >

void main()
{
int height, base;

cout<<"Enter height and base";
cin>>height>>base;
Area=height*base*0.5;

cout<<"Area if triangle is"<<area;

No comments:

Post a Comment