input integer in c# int32 code example Example: c# input integer int chosenNumber = int.Parse(Console.ReadLine());