Archive:Area of triangle using C
Appearance
Area of triangle
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main ( )
{
float a,b,c,s,area;
clrscr();
printf("enter sides of trinagel\n");
scanf("%f%f%f",&a,&b,&c);
s=(a+b+c) /2;
area=sqrt(s*(s-a)*(s-b)*(s-c));
printf("area = %f\n",area);
getch();
}