#include<stdio.h> #include<math.h> int main(void) { float a,b,c; scanf("%f %f %f ",&a,&b,&c); float m=a+b+c; float p=m/2; float s=sqrt(p*(p-a)*(p-b)*(p-c)); printf("circumference=%.2f area=%.2f",m,s); return 0; }
#include<stdio.h> #include<math.h> int main(void) { float a,b,c; scanf("%f %f %f ",&a,&b,&c); float m=a+b+c; float p=m/2; float s=sqrt(p*(p-a)*(p-b)*(p-c)); printf("circumference=%.2f area=%.2f",m,s); return 0; }