Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cmath>
- #include<clocale>
- using namespace std;
- int main()
- {
- setlocale(0, "RUS");
- float x, y;
- cin >> x >> y;
- if (0 <= y <= 1 && -y <= x <= y || -1 <= y <= 0 && y <= x <= -y)
- {
- cout << "Попадает в необходимую область" << endl;
- }
- else
- {
- cout << "Не попадает в необходимую область" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement