80分,求帮忙看看代码!!!;
查看原帖
80分,求帮忙看看代码!!!;
768840
dcmzwy楼主2022/8/10 17:24
#include <iostream>
#include <cmath> 
#include <iomanip>
using namespace std;
int main()
{
	float a,b,c,s,p;
	cin>>a>>b>>c;
	p=1.0/2*(a+b+c); 
	s=sqrt(p*(p-a)*(p-b)*(p-c));
	cout<<fixed<<setprecision(1)<<s<<endl;
	return 0; 
} 
2022/8/10 17:24
加载中...