Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int px, py, a, b;
- cin >> px >> py >> a >> b;
- int tx, ty;
- cin >> tx >> ty;
- if ((tx>=px && tx<=px+a) and (ty>=py && ty<=py+b))
- {
- if (tx==px||tx==px+a or ty==py||ty==py+b) cout << "strana";
- else cout << "vnatre";
- }
- else cout << "nadvor";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment