#include <iostream>
#include
using namespace std;
int main()
{
int a, b, c;
cout << “请输入三角形的三边长:” << endl;
cin >> a >> b >> c;
int p = (a + b + c) / 2;
double s;
s = sqrt((p - a)(p - b)(p - c)*p);
cout << “三角形的面积为:” << s << endl;
}
#include <iostream>
#include
using namespace std;
int main()
{
int a, b, c;
cout << “请输入三角形的三边长:” << endl;
cin >> a >> b >> c;
int p = (a + b + c) / 2;
double s;
s = sqrt((p - a)(p - b)(p - c)*p);
cout << “三角形的面积为:” << s << endl;
}