Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string password;
- password = "123";
- string username;
- string test ;
- username = test;
- cout << "Enter username:";
- cin >> test;
- cout <<"\n";
- cout << "Enter password:";
- cin >> password;
- cout <<"\n";
- if (password == "123")
- cout << "Access Granted...";
- if (password != "123")
- cout << "Access Denied.....Invalid Username/Password:";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement