daily pastebin goal
45%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. static void Main(string[] args)
  2.         {
  3.  
  4.             string sElvish = "elvish";
  5.  
  6.             string userInput = Console.ReadLine();
  7.  
  8.             string lowerUserInput = userInput.ToLower();
  9.  
  10.             Console.WriteLine(lowerUserInput);
  11.  
  12.             if (lowerUserInput == sElvish)
  13.             {
  14.                 //do something here.
  15.             }
  16.  
  17.             else
  18.             {
  19.                 //Do something else here.
  20.             }
  21.  
  22.             Console.ReadLine();
  23.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top