#include
#include
#include
voidmain()
{
clrscr();
int a,b,c,s,area; printf("enter the valuesof the sides of thetriangle\n");scanf("%d%d%d",&a,&b,&c); s=(a+b+c)/2; area=squrt(s*(s-a)*(s-b)*(s-c));
printf("the area of the triangle is %d",area); getch();
}
No comments:
Post a Comment