how to read input in c# console application code example Example: c# console input string userName = Console.ReadLine();