輸入三角形的三條邊長,計算出其面積並輸出。

#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)*(
相關文章
相關標籤/搜索