Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- float mini(float x, float y)
- {
- if (x > y)
- return y;
- return x;
- }
- float maxi(float x, float y)
- {
- if (x < y)
- return y;
- return x;
- }
- float E(float x, float y)
- {
- if (x * x + y * y >= 1)
- return mini(x, y);
- return maxi(x, y);
- }
- int main()
- {
- int x, y;
- cin >> x >> y;
- cout << E(x, y);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement