1.

Write a program to find the area of a triangle.

Answer»

#include

using namespace std;

int main()

{

int b,h;

float area;

cout<<"Enter values for b and h";

cin>>b>>h;

area=0.5*b*h;

cout<<" The area of a triangle is "<<area;

}



Discussion

No Comment Found