#include<stdio.h>
main()
{
float l,b,area;
printf("\nEnter base and height of the triangle=");
scanf("%f%f",&b,&h);
area=0.5*b*h;
printf("\nThe area=%d",area);
}
main()
{
float l,b,area;
printf("\nEnter base and height of the triangle=");
scanf("%f%f",&b,&h);
area=0.5*b*h;
printf("\nThe area=%d",area);
}
No comments:
Post a Comment