11/17/2015

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<stdio.h>

int main()
{
    /*Program By Ghanendra Yadav
    Visit http://www.programmingwithbasics.com/
    */
    float b,h,area;

    printf("Enter Height and Base Of Triangle : ");
    scanf("%f %f",&h,&b);

    area = (h*b)/2;
    printf("Area of Triangle is: %f\n",area);
    return 0;
}

See Also :- Java Program To Find Area Of Triangle

Output:-


C Program To Display Area Of Triangle

Ghanendra Yadav

Ghanendra Yadav

Hello, I Am Ghanendra Yadav Owner of This Blog, I am professional Blogger and Programmer. I Love Programming, Logo Making, And Banner Designing. My Highest Qualification is MCA From NIT Warangal. You Can Find Me On Social Media Through Below Link And If You Have Any Query Related To Programming And Other Subject Comment Below or You Can Mail Me I Will Try To 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