c2
This commit is contained in:
parent
0d75f30a49
commit
4744ebb565
69 changed files with 7 additions and 5 deletions
|
|
@ -1,22 +0,0 @@
|
|||
// pb_z3_9.cpp
|
||||
// Горбацевич Андрей
|
||||
#include <cmath>
|
||||
#include <iostream>
|
||||
#include<algorithm>
|
||||
using namespace std;
|
||||
|
||||
float min_or_max(float a, float b, float c)
|
||||
{
|
||||
if (a > 0.5)
|
||||
return max(b, c);
|
||||
else
|
||||
return min(b, c);
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
float a, b, c;
|
||||
cin >> a >> b >> c;
|
||||
float d = min_or_max(a, b, c);
|
||||
cout << d << endl;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue