Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- String a, b, c, d;
- cin >> a;
- cin >> c;
- cin >> b;
- d = String("==");
- if(c == d){
- if(a == b) cout << "YES";
- else cout << "NO";
- }
- else{
- d = String("!=");
- if(c == d){
- if(a != b) cout << "YES";
- else cout << "NO";
- }
- else{
- d = String(">=");
- if(c == d){
- if(a >= b) cout << "YES";
- else cout << "NO";
- }
- else{
- d = String("<=");
- if(c == d){
- if(a <= b) cout << "YES";
- else cout << "NO";
- }
- else{
- d = String("<");
- if(c == d){
- if(a < b) cout << "YES";
- else cout << "NO";
- }
- else{
- d = String(">");
- if(c == d){
- if(a > b) cout << "YES";
- else cout << "NO";
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement