Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iomanip>
- #include<iostream>
- #include<cmath>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "Russian");
- double x, y;
- cout << "Введите координаты точки: " << '\n' << "x=";
- cin >> x;
- cout << "y=";
- cin >> y;
- if (x > 0 && x < 70 && y > 0 && y < x)
- {
- cout << "Принадлежит области" << endl;
- }
- else if (x == 70 || x == 0 || y == 0 || y == x)
- {
- cout << "Лежит на границе" << endl;
- }
- else
- {
- cout << "Не принадлежит области" << endl;
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement