输入三角形的3边长,求三角形面积

假设三角形三边长a,b,c,面积公式以下: area= √(s(s-a)(s-b)(s-c)); s = (a+b+c)×1/2 注意:此处用到数学库函数“math.c”提供的sqrt 代码以下:ios #include<iostream> #include<math.h> using namespace std; int main() { cout << "请输入三条边的长:" << e
相关文章
相关标签/搜索