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