'commit'
This commit is contained in:
15
C++课程/第六课scanf语句与printf语句/hailungongshi.cpp
Normal file
15
C++课程/第六课scanf语句与printf语句/hailungongshi.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include<iostream>
|
||||
#include<algorithm>
|
||||
#include<math.h>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
double a,b,c,p,Area;
|
||||
cout<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ε<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߳<EFBFBD><EFBFBD><EFBFBD>"<<endl;
|
||||
cin>>a>>b>>c;
|
||||
p=(a+b+c)/2;
|
||||
Area=sqrt(p*(p-a)*(p-b)*(p-c));
|
||||
cout<<Area<<endl;
|
||||
return 0;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user