how to convert console readline string to int c# code example Example: c# input integer int chosenNumber = int.Parse(Console.ReadLine());