C# User Input - W3Schools
www.w3schools.com › cs › cs_user_inputThe Console.ReadLine () method returns a string. Therefore, you cannot get information from another data type, such as int. The following program will cause an error: Example Console.WriteLine("Enter your age:"); int age = Console.ReadLine(); Console.WriteLine("Your age is: " + age); The error message will be something like this: