View Code of Problem 24

#include <stdio.h>
#include <string.h>
int main()
{
	float a,b,c,d,s;
  	while (scanf("%d%d%d",&a,&b,&c)!=EOF)
        {
  	d=(a+b+c)/2;
  	s=sqrt(d*(d-a)*(d-b)*(d-c));
  	printf("%.2f\n",s);
        }
  	
  	
 
 
 
}

Double click to view unformatted code.


Back to problem 24