input and output in c# console code example Example: c# console input string userName = Console.ReadLine();