Advertisement
ProgNeo

Untitled

Dec 8th, 2021
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. setlocale(LC_ALL, "rus");
  8. const double e = 2.7182818281818181818;
  9. float x;
  10. float y;
  11. cout << "Введите X и Y: "; cin >> x >> y;
  12. if (y < pow(e, x) && y < pow(e, -x) && y > x * x)
  13. {
  14. cout << x + y;
  15. }
  16. else
  17. {
  18. cout << x - y;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement