Wednesday, 21 October 2015

C++ Program To Find Area Of Triangle

Problem :- C++ Program To Find Area Of Triangle .

Area Of Triangle:-To Find the Area Of Triangle we need to height and base . given formula show that 

Area = ( Height * Base )/2 


C++ Program To Find Area Of Triangle


See Also :- C Program To Find Area Of Triangle

Solution :-

#include<iostream>
using namespace std;
int main()
{
    /*Program By Ghanendra Yadav
    Visit http://www.programmingwithbasics.com/
    */
    float b,h,area;

    cout<<"Enter Height and Base Of Triangle : ";
    cin>>h>>b;

    area = (h*b)/2;
    cout<<"Area of Triangle is:"<<area<<endl;
    return 0;

}

See Also :- Java Program To Find Area Of Triangle

Output:-

C++ Program To Display Area Of Triangle

Ghanendra Yadav
Ghanendra Yadav

I Am Ghanendra Yadav Owner Of This Website. I Love Programming, Web Developing, Logo Making, Banner And Website designing. Currently I Am Studying In NIT Warangal And Also Working With WSDC( As Web Application Developer ) In NIT Warangal For Any Query Mail Me I Will Answer Within 24 Hours Email:- yghanendra@student.nitw.ac.in

Find me on Social Media

Facebook | Twitter | Google+ | RSS Feed

No comments:

Post a Comment