spore
 1 #include <stdio.h>
 2 #include <stdlib.h>
 3 #include <math.h>
 4 
 5 int main()
 6 {
 7     float  a,b,c,s,area;
 8     scanf("%f%f%f",&a,&b,&c);
 9     s = (a+b+c)/2;                //已知三边计算三角形面积公式
10     area = sqrt(s*(s-a)*(s-b)*(s-c));  
11     printf("%f",area);
12     return 0;
13 }

 

分类:

技术点:

相关文章:

  • 2021-12-19
  • 2021-12-19
  • 2021-12-19
  • 2021-05-17
  • 2021-11-01
  • 2021-12-19
  • 2021-12-19
猜你喜欢
  • 2021-12-19
  • 2021-09-07
  • 2021-12-19
  • 2021-12-19
  • 2021-12-19
  • 2021-12-19
  • 2022-12-23
相关资源
相似解决方案