Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     int x, y;
  6.     cin >> x >> y;
  7.     if(x == 0 && y == 0) {
  8.         cout << "0";
  9.     }
  10.     else if(x > 0 && y > 0) {
  11.         cout << "I";
  12.     }
  13.     else if(x < 0 && y > 0) {
  14.         cout << "II";
  15.     }
  16.     else if(x < 0 && y < 0) {
  17.         cout << "III";
  18.     }
  19.     else if(x > 0 && y < 0) {
  20.         cout < "IV";
  21.     }
  22.     else if(x == 0 && y > 0 || y < 0)
  23.     {
  24.         cout << "0Y";
  25.     }
  26.     else if(y == 0 && x > 0 || x < 0)
  27.     {
  28.         cout << "X0";
  29.        
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement