C語言輸入三角形三條邊邊長 算三角形面積

C語言輸入三角形三條邊邊長 算三角形面積 方法:S=sqrt(p*(p-a)(p-b)(p-c)); //海倫公式 代碼: #include<stdio.h> #include<math.h> void main() { float a,b,c,p; double S; printf(「請輸入三邊長度:\n」); scanf("%f %f %f",&a,&b,&c); if(a+b>c&&b+c>
相關文章
相關標籤/搜索