Advertisement
Tec4Gen

Untitled

Oct 22nd, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #include<iomanip>
  2. #include<iostream>
  3. #include<cmath>
  4. using namespace std;
  5. int main()
  6. {
  7. setlocale(LC_ALL, "Russian");
  8. double x, y;
  9. cout << "Введите координаты точки: " << '\n' << "x=";
  10. cin >> x;
  11. cout << "y=";
  12. cin >> y;
  13. if (x > 0 && x < 70 && y > 0 && y < x)
  14. {
  15. cout << "Принадлежит области" << endl;
  16. }
  17. else if (x == 70 || x == 0 || y == 0 || y == x)
  18. {
  19. cout << "Лежит на границе" << endl;
  20. }
  21. else
  22. {
  23. cout << "Не принадлежит области" << endl;
  24. }
  25. system("pause");
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement