Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string username = "snabban93";
- string password = "masterfister89";
- string input1, input2;
- int counter = 0;
- while(counter > 4){
- cout << "Enter password and username " << endl;
- cout << "Username:";
- cin >> input1;
- cout << "Password:";
- cin >> input2;
- if(username == input1 && input2 == password){
- cout << "Welcome!";
- break;
- }
- else{
- cout << "login is invalid"<< endl;
- }
- ++counter
- }
- cout << "Fuck off " endl;
Add Comment
Please, Sign In to add comment