take user input in C# from the console code example Example: c# console input string userName = Console.ReadLine();