KodeGod.com

007. Write a program to print area of a triangle A(Triangle)= 0.5 * B * H in C language


#include<stdio.h>
#include<conio.h>  
main()
{
 float AREA,B,H;
 clrscr();
 printf("Enter Base & Height: ");
 scanf("%f%f",&B,&H);
 AREA=0.5*B*H;
 printf("Area of the given is : %6.2f",AREA);
 getch();
}