View Code of Problem 14

#include "stdio.h"
#include "math.h"
main()
{
int x,y,z;
float s,temp;
scanf("%d%d%d",&x,&y,&z);
s=(x+y+z)/2;
temp=sqrt(s*(s-x)*(s-y)*(s-z));
printf("%f\n",temp);

}

Double click to view unformatted code.


Back to problem 14