Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace ConsoleApplication3
- {
- class Program
- {
- static void Main(string[] args)
- {
- int number = 10;
- string username = "bit1@abv.bg";
- string password = "secret";
- string newUsername = "bit2@abv.bg";
- string newPassword = "secret1";
- // cin
- Console.WriteLine("Ënter username: ");
- username = Console.ReadLine();
- Console.WriteLine("Ënter password: ");
- password = Console.ReadLine();
- if(username==newUsername && password==newPassword)
- {
- Console.WriteLine("Welcome!");
- }
- else
- {
- Console.WriteLine("Error");
- }
- //system.pause()
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement