Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int haslo = 12,a;
- cout << "Podaj haslo" << endl;
- cin >> haslo;
- if ( haslo == 120601 ){
- cout << "Haslo przyjete" << endl;
- cout << "Wybierz Polecene" << endl;
- cin >> a;
- switch ( a )
- {
- case 1:
- cout << "cos tam" << endl;
- break;
- case 2:
- cout << "cos inngo" << endl;
- break;
- }
- }
- else
- cout << "Haslo odrzucone" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment