1 #include <stdio.h>
 2 #include <math.h>
 3 void main()
 4 {
 5     float a,b,c;
 6     double s,area;
 7     printf ("please enter three numbers as a b c \n");
 8     scanf ("%f%f%f",&a, &b, &c);
 9     s=0.5*(a+b+c);
10     area=sqrt(s*(s-a)*(s-b)*(s-c));
11     printf ("the area is %f\n", area);
12 }

 

相关文章:

  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-12-19
  • 2021-12-26
  • 2022-12-23
猜你喜欢
  • 2021-12-26
  • 2021-12-26
  • 2021-12-26
  • 2021-05-02
  • 2021-12-19
  • 2021-12-19
  • 2021-12-19
相关资源
相似解决方案