View Code of Problem 24

#include<stdio.h>
#include<math.h>
main()
{
	int a,b,c;
	float p,s,area;
	scanf("%d %d %d",&a,&b,&c);
  	p=(a+b+c)/2.0;
  	s=(p-a)*(p-b)*(p-c)*p;
  	area=sqrt(s);
  	printf("%4.2f\n",area);
}

Double click to view unformatted code.


Back to problem 24