我用程序來(lái)計(jì)算三角形面積哪里錯(cuò)了
#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
電話號(hào)碼布局明明js寫(xiě)在了html里面,那用外部引入js是要怎么引用呢?
2019-01-18
sqrt是什么意思?
2018-10-18
三角形面積是s=(a+b+c)/2???
2018-10-17
三角形面積需要那么多數(shù)據(jù)嗎,算個(gè)三角形的面積還需要用到函數(shù)嗎
2018-10-08
sqrt屬于數(shù)學(xué)函數(shù),需要#include <math.h>
2018-10-08
少了個(gè)math頭文件
2018-10-07
算三角形還有那么巧妙的公式的嗎