Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- char username[10];
- char password[10];
- cout << "Username:"; << endl;
- cin >> username;
- cout << "Password:" << endl;
- cin >> password;
- if(username == "admin") && if(password == "passwort")
- {
- cout << "Login Successfully" << endl;
- }
- else
- {
- cout << "Your Username/Password didn't match!" << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement