Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x, y;
- cin >> x >> y;
- if(x == 0 && y == 0) {
- cout << "0";
- }
- else if(x > 0 && y > 0) {
- cout << "I";
- }
- else if(x < 0 && y > 0) {
- cout << "II";
- }
- else if(x < 0 && y < 0) {
- cout << "III";
- }
- else if(x > 0 && y < 0) {
- cout < "IV";
- }
- else if(x == 0 && y > 0 || y < 0)
- {
- cout << "0Y";
- }
- else if(y == 0 && x > 0 || x < 0)
- {
- cout << "X0";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement