Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace GuessThePassword
- {
- class Program
- {
- static void Main(string[] args)
- {
- string inputData = Console.ReadLine();
- string[] bank = { "s3cr3t!P@ssw0rd", "Welcome", "Wrong password!"};
- if (inputData == bank[0])
- {
- Console.WriteLine(bank[1]);
- }
- else
- {
- Console.WriteLine(bank[2]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement