fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n, m;
  7. char s;
  8. cin >> n>>s >> m;
  9. switch (s)
  10. {
  11.  
  12. case '<':
  13. {
  14. if (n < m)
  15. cout << "Right" << endl;
  16. else
  17. cout << "Wrong" << endl;
  18. }
  19. break;
  20.  
  21. case '>':
  22. {
  23. if (n > m)
  24. cout << "Right" << endl;
  25. else
  26. cout << "Wrong" << endl;
  27. }
  28. break;
  29. case '=':
  30. {
  31. if (n == m)
  32. cout << "Right"<<endl;
  33. else
  34. cout << "Wrong"<<endl;
  35. }
  36. break;
  37. }
  38. return 0;
  39. }
Success #stdin #stdout 0s 4388KB
stdin
Standard input is empty
stdout
Standard output is empty