解析 #include #include void main() { float a,b,c; double s,area; printf("please input a b c :"); scanf("%f%f%f",&a,&b,&c); printf("a=%f b=%f c=%f\n",a,b,c); s=(a+b+c)/2.0; area=sqrt(s*(s-a)*(s-b)*(s-c)); printf("area=%f",area); } ...