delete pics to save space
This commit is contained in:
12
history_source/ccf 入门篇/U2/2.4.2.cpp
Normal file
12
history_source/ccf 入门篇/U2/2.4.2.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
#include<iostream>
|
||||
#include<cmath>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
float a,b,c,p;
|
||||
while(true){
|
||||
cin>>a>>b>>c;
|
||||
p=(a+b+c)/2.0;
|
||||
cout<<"S="<<sqrt(p*(p-a)*(p-b)*(p-c))<<endl;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user