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

**Area = ( Height * Base )/2**

**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:-**

#include

ReplyDelete#include

int main()

{

float area,x,s,a,b,c;

printf("Enter three sides of the triangle");

scanf("%f%f%f",&a,&b,&c);

s=((a+b+c)/2);

x=s*(s-a)*(s-b)*(s-c);

area=pow(x,0.5);

printf("Area is %f",area);

}