read numbers from user in console application c# code example Example: c# input integer int chosenNumber = int.Parse(Console.ReadLine());