View Code of Problem 24

#include<stdio.h>
#include<math.h>
typedef long long ll;

int main()
{
	ll a,b,c;
	while(~scanf("%lld%lld%lld",&a,&b,&c)){
        ll p=a+b+c;
        printf("%.2f\n",0.25*sqrt(p*(p-2*a)*(p-2*b)*(p-2*c)));
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 24