C# how to get user input on console code example Example: c# console input string userName = Console.ReadLine();