输入三角形的三条边长,计算出其面积并输出。

#include <stdio.h> #include <stdlib.h> #include <math.h> int main() {     double a,b,c,x, s;     printf("输入三角形的三条边长:");     scanf("%lf %lf %lf",&a,&b,&c);     x=(a+b+c)/2.0;     s=sqrt(x*(x-a)*(x-b)*(
相关文章
相关标签/搜索