C++ Program to calculate area of a triangle

How to write a C++ program to calculate area of a triangle ?


Area of Triangle - C++ Programming Question Program to find the Area of any Triangle Write a C++ program to find area of triangle.?  Make c++ program that calculate an area   program in c++ to compute and print area and perimeter of triangle  C++ Classes and Objects - calculate area and perimeter of Triangle c++ program to find area of triangle  Information: How to Find Area of Triangle using C++ Triangle Program - C++ Forum  Write a C++ program to find area of triangle Calculating an area of triangle using the inline function C++ C++ Simple Program Area Of A Triangle - C And C++ How Do I Get My C Program To Calculate Area Of A Triangle How to Write a Simple C++ Program to Find Area of Triangle
C++ Program to calculate area of a triangle



Solution:
//Program to calculate area of a triangle.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float a,b;
cout<<"Enter height: ";
cin>>a;
cout<<"Enter base: ";
cin>>b;
a=0.5*a*b;
cout<<"Area of the triangle is: "<<a;
getch();
}

This C++ Program to calculate area of a triangle.


Learn More :