1

点击查看代码
  #include<stdio.h>
  #include<stdlib.h>
  #include<math.h>
  int main()
 {
      double s,S;
      int a,b,c;
     while(scanf("%d%d%d",&a,&b,&c)!=EOF)
    {
         s=(a+b+c)/2.0; 
        S=sqrt(s*(s-a)*(s-b)*(s-c));
         
         printf("a=%d,b=%d,c=%d,area=%.3f\n",a,b,c,S);
     }
     system("pause:");
      
     return 0;
 }

posted @ 2024-04-14 16:45  zzr621  阅读(34)  评论(0)    收藏  举报