#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int a,b,c;
float s,d,area;
clrscr();
printf("Enter the length of the three sides");
scanf("%d%d%d",&a,&b,&c);
s=(a+b+c)/2;
d=(s*(s-a)*(s-b)*(s-c));
area=sqrt(d);
printf("Area of the triangle = %f sq units", area);
getch();
}
#include<conio.h>
#include<math.h>
void main()
{
int a,b,c;
float s,d,area;
clrscr();
printf("Enter the length of the three sides");
scanf("%d%d%d",&a,&b,&c);
s=(a+b+c)/2;
d=(s*(s-a)*(s-b)*(s-c));
area=sqrt(d);
printf("Area of the triangle = %f sq units", area);
getch();
}
ReplyDeletenice article for beginners.thank you.
javacodegeeks
welookups