Wednesday, 1 April 2015

c program to find the area of a traingle

write a c program to find the area of a traingle

 
/* c program to find the area of a traingle*/
/* author: sai      date:30-3-2015 */

#include <stdio.h>
main()
{
   float l,h,area;
   printf("enter l,h values");
   scanf("%f%f", &l, &h);
   area = (l*h) / 2;
   printf("%f\n",area);
}



No comments:

Post a Comment