#include<iostream>
#include<cmath>
using namespace std;
int main() {
int a, b ,c,p,s;
cout << "请输入三边长:" << std::endl;
cin >> a >> b >> c;
p = (a + b + c) / 2;
s = sqrt(p * (p - a) * (p - b) * (p - c));
cout << "s=" << s;
}
海伦公式 面积
最新推荐文章于 2021-05-23 04:18:00 发布