我用程序來計算三角形面積哪里錯了
#include <stdio.h>
int main()
? int math()??????????????????????????????????????????????????????????????????? {
?? float a,b,c,s,area;?????????????????????????????????????????????????????????????? a=17.8? ;??????????????????????????????????????????????????????????????? b=19.5 ;???????????????????????????????????????????????????????????????? c=25.7;?????????????????????????????????????????????????????????????? s=(a+b+c)/2;??????????????????????????????????????????????????????????? area=sqrt s*(s-a)*(s-b)*(s-c);?????????????????????????????????????????? printf("三角形面積為:%f\n",area);
??? return 0;
??????? }
2018-09-22
#include <math.h>
2022-03-26
電話號碼布局明明js寫在了html里面,那用外部引入js是要怎么引用呢?
2019-01-18
sqrt是什么意思?
2018-10-18
三角形面積是s=(a+b+c)/2???
2018-10-17
三角形面積需要那么多數據嗎,算個三角形的面積還需要用到函數嗎
2018-10-08
sqrt屬于數學函數,需要#include <math.h>
2018-10-08
少了個math頭文件
2018-10-07
算三角形還有那么巧妙的公式的嗎