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