Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication3.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <iostream>
- #include "string"
- using namespace std;
- string username, password;
- int main()
- {
- cout << "enter your username:";
- cin >> username;
- cout << "enter your password:";
- cin >> password;
- if ((username == "admin") && (password == "nasal"));
- {
- cout << "Login was sucessful";
- }
- else
- {
- cout << "wrong username or password";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement