Q:

C Program To Find Area Of Triangle

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)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now