Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- // ax ay bx by
- int x1, y1, x2, y2;
- cin >> x1 >> y1 >> x2 >> y2;
- bool x_check = (x1 >= 0 && x2 >= 0) || (x1 <= 0 && x2 <= 0);
- bool y_check = (y1 >= 0 && y2 >= 0) || (y1 <= 0 && y2 <= 0);
- if (x_check && y_check)
- cout << "da";
- else
- cout << "ne";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement