2015-11-15から1日間の記事一覧
#include <stdio.h> #include <math.h> int main(int argc,char* argv[]){ char buffer[80]; double a,b,c,s,temp,area; fgets(buffer,80,stdin); sscanf(buffer,"%lf %lf %lf",&a,&b,&c); s = (a + b + c)/2; temp = s*(s-a)*(s-b)*(s-c); area = sqrt(temp); printf("%lf\n"</math.h></stdio.h>…