Advertisement
Spocoman

02. Password

Sep 10th, 2023 (edited)
1,392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.     string username, password, input;
  7.     cin >> username >> password >> input;
  8.  
  9.     while (input != password) {
  10.         cin >> input;
  11.     }
  12.    
  13.     cout << "Welcome " << username << "!" << endl;
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement