Q:

C Program To Find Area Of Triangle

belongs to collection: Basic C Programs for Practice

0

To Find the Area Of Triangle we need to height and base . given formula show that 
Area = ( Height * Base )/2 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include<stdio.h>
int main()
{
    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;
}

Output:

Enter Height and Base Of Triangle : 5

8

Area of Triangle is: 20.000000

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C Program to Convert a person\'s name in Abbr... >>
<< C Program To Print Ascii Value Of Character...