fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main(){
  5. int a,b;
  6. char ch;
  7. cin >> a >> ch >> b;
  8. if(ch == '<' && a < b || (ch == '=' && a == b) || (ch == '>' && a > b)) cout << "Right";
  9. else cout << "Wrong";
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5284KB
stdin
99 > 1
stdout
Right