#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float a,b,c,s,temp,area;
clracr();
printf(“enter the sides of the triangle :”);
scanf(“%f%f%f”,&a,&b,&c);
s=a+b+c/2;
temp=((s*(s-a)*(s-b)*(s-c)));
area=sqrt(temp);
printf(“area is = %f”,area);
}
Comments