console.readline in c# value must be an int code example Example: c# input integer int chosenNumber = int.Parse(Console.ReadLine());