Find Area Of Triangle Using C++
Find area of triangle using C++ simple code
source code
========================================================================
#include<iostream>
using namespace std;
main()
{
float base,height,area_of_triangle;
cout<<"Enter base and height of triangle\n";
cin>>base>>height;
area_of_triangle=(base*height)/2;
cout<<"\n Area of Triangle = "<<area_of_triangle;
}
========================================================================
0 comments:
Post a Comment