Write a program how to find area of triangles (a=h*b*.5) , Where a = area h = height b = base

// how to find area of triangles 

#include<stdio.h>
int main()
{
float a,h,b;
printf(“\n Enter height :”);
scanf(“%f”,&h);
printf(“\n Enter base :”);
scanf(“%f”,&b);
a=b*h*0.5;
printf(“\n Area of triangle = %f”,a);
return 0;
}

 

You can get more related c programs here

http://projugaadu.com/category/topics/c-language/

Leave a Comment