-->

program to get area of triangle using perimeter concept

// program to get area of triangle using perimeter concept
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float a,b,c;
float s,area,peri;
printf(“enter sides of triangle\n”);
scanf(“%f%f%f”,&a,&b,&c);
s=a+b+c;
area=sqrt(s*(s-a)*(s-b)*(s-c));
printf(“the area is=%f\n”,area);
getch();
}