if the input wasnt an integer console.read c# code example Example: c# input integer int chosenNumber = int.Parse(Console.ReadLine());