Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "rus");
- const double e = 2.7182818281818181818;
- float x;
- float y;
- cout << "Введите X и Y: "; cin >> x >> y;
- if (y < pow(e, x) && y < pow(e, -x) && y > x * x)
- {
- cout << x + y;
- }
- else
- {
- cout << x - y;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement