Create 1363.c

pull/15/head
KiritoTRw 2016-05-22 23:47:38 +08:00
parent 88839a9866
commit 14271b73d8
1 changed files with 11 additions and 0 deletions

11
QUSTOJ/1363.c Normal file
View File

@ -0,0 +1,11 @@
#include <stdio.h>
#include <math.h>
/*This program does not use #define to solve the problem*/
int main()
{
double a,b,c,p;
scanf("%lf %lf %lf",&a,&b,&c);
p=(a+b+c)/2;
printf("%.3lf\n",sqrt(p*(p-a)*(p-b)*(p-c)));
return 0;
}