Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  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.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement