View Code of Problem 24

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



}

Double click to view unformatted code.


Back to problem 24