Advertisement
EmoRz

WrongPass

Jun 19th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace GuessThePassword
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string inputData = Console.ReadLine();
  14.             string[] bank = { "s3cr3t!P@ssw0rd", "Welcome", "Wrong password!"};
  15.             if (inputData == bank[0])
  16.             {
  17.                 Console.WriteLine(bank[1]);
  18.             }
  19.             else
  20.             {
  21.                 Console.WriteLine(bank[2]);
  22.             }
  23.  
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement