Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- string sElvish = "elvish";
- string userInput = Console.ReadLine();
- string lowerUserInput = userInput.ToLower();
- Console.WriteLine(lowerUserInput);
- if (lowerUserInput == sElvish)
- {
- //do something here.
- }
- else
- {
- //Do something else here.
- }
- Console.ReadLine();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement