#include<conio.h>
#include<stdio.h>
#include<math.h>
int main() 
{
float a,b,c,s,A;
printf("\n enter the value of the sides of the
triangle:");
scanf("%f%f%f",&a,&b,&c);
s=(a+b+c)/2;
A=sqrt(s*(s-a)*(s-b)*(s-c));
printf("\n the area of the triangle is:%f",A);
getch(); 
return 0; 
} 
why this prog does not work with "pow" function?????????
ReplyDeleteThis will work
ReplyDeletepow(s*(s-a)*(s-b)*(s-c), .5)