fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int password;
  6. while (cin >> password) {
  7. if (password == 1999) {
  8. cout << "Correct" << endl;
  9. break;
  10. } else {
  11. cout << "Wrong" << endl;
  12. }
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
Standard output is empty