fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. string PIN;
  6.  
  7. int main()
  8. {
  9. cout << "Witaj w naszym banku" << endl;
  10. cout << "Podaj numer PIN ";
  11. cin >> PIN;
  12.  
  13. if(PIN=="1729")
  14. {
  15. cout << "Poprawny PIN ";
  16. }
  17. else
  18. {
  19. cout << "niepoprawny PIN ";
  20. }
  21.  
  22. return 0;
  23. }
  24.  
Success #stdin #stdout 0s 3344KB
stdin
Standard input is empty
stdout
Witaj w naszym banku
Podaj numer PIN  niepoprawny PIN