- 龙凤苑中学B班4.18
三角形面积
- @ 2024-5-10 17:15:11
#include<bits/stdc++.h> #include using namespace std; int main(){ double a,b,c,p,s; cin>>a>>b>>c; p=(a+b+c)/2; s=p*(p-a)*(p-b) *(p-c); s=sqrt(s); cout<<fixed<<setprecision(1)<<s<<endl; return 0; }
0 comments
No comments so far...