#include <math.h> #include <stdio.h> int main(void) { double a,b,c,p,len,area; scanf("%lf %lf %lf",&a,&b,&c); if(a+b>c&&a+c>b&&b+c>a) { p=(a+b+c)/2; len=a+b+c; area=p*(p-a)*(p-b)*(p-c); area=pow(area, 0.5); printf("circumference=%.2lf area=%.2lf",len,area); } else printf("ERROR\n"); }