Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.18 KB | None | 0 0
  1. int main()
  2. {
  3.     String a, b, c, d;
  4.     cin >> a;
  5.     cin >> c;
  6.     cin >> b;
  7.  
  8.     d = String("==");
  9.     if(c == d){
  10.         if(a == b) cout << "YES";
  11.         else cout << "NO";
  12.     }
  13.     else{
  14.         d = String("!=");
  15.         if(c == d){
  16.             if(a != b) cout << "YES";
  17.             else cout << "NO";
  18.         }
  19.         else{
  20.             d = String(">=");
  21.             if(c == d){
  22.                 if(a >= b) cout << "YES";
  23.                 else cout << "NO";
  24.             }
  25.             else{
  26.                 d = String("<=");
  27.                 if(c == d){
  28.                     if(a <= b) cout << "YES";
  29.                     else cout << "NO";
  30.                 }
  31.                 else{
  32.                     d = String("<");
  33.                     if(c == d){
  34.                         if(a < b) cout << "YES";
  35.                         else cout << "NO";
  36.                     }
  37.                     else{
  38.                         d = String(">");
  39.                         if(c == d){
  40.                             if(a > b) cout << "YES";
  41.                             else cout << "NO";
  42.                         }
  43.                     }
  44.                 }
  45.             }
  46.         }
  47.     }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement