Online Computer Courses Classes and Training Program

Find area of tringle in c++

#include<iostream>
using namespace std;
main()
{
    int length,base,area;
    cout<<" Length of triangle :-";
    cin>>length;
    cout<<" Base of triangle :-";
    cin>>base;
    area=(length*base)/2;
    cout<<" Area of triangle is :-"<<area;
    return 0;
}

Post a Comment

0 Comments