Education

Input & Output Devices

Program of Area of Triangle



//  Program of Area of Triangle (1/2*b*h)


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

Comments