Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- double x, x1, x2, y, y1, y2;
- cin >> x1 >> y1 >> x2 >> y2 >> x >> y;
- if (x1 < x2 && y1 < y2)
- {
- if ((x == x1 || x == x2) && (y >= y1) && (y <= y2))
- {
- cout << "Border" << endl;
- }
- else if ((y == y1 || y == y2) && (x >= x1) && (x <= x2))
- {
- cout << "Border" << endl;
- }
- else
- {
- cout << "Inside / Outside" << endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement