海伦公式求三角形面积(https://iknow-pic.cdn.bcebos.com/0d338744ebf81a4c5f2ee878da2a6059252da666)
#include<stdio.h> int main() { int a,b,c; float circumference, area; float p,h; scanf("%d%d%d",&a,&b,&c); circumference=a+b+c; p=0.5circumference; h=p(p-a)(p-b)(p-c); area=sqrt(h); printf("circumference=%.2f area=%.2f\n",circumference,area);
}