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