C PROGRAM TO FIND AREA OF TRIANGLE
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float a,b,c,s,area;
clrscr();
printf("enter the values of a,b,c");
scanf("%f%f%f",&a,&b,&c);
s=(a+b+c)/2;
area=((s*(s-a)*(s-b)*(s-c)));
printf("the area of numbers is %f%f%f is %f",a,b,c,area);
getch();
}
No comments:
Post a Comment