Write a C Program to find area of Triangle

Write a C Program to find area of Triangle

#include<stdio.h>
#include<conio.h>
void main()
{         float b,h,a;
           clrscr();
           printf(“Enter base:”);
           scanf(“%f”,&b);
           printf(“Enter height:”);
           scanf(“%f”,&h);
           a=(0.5)*b*h;
           printf(“Area of Triangle is:%f”,a);
           getch();
}
Output

You may also like...

Leave a Reply