c# input integer

C#
int chosenNumber = int.Parse(Console.ReadLine());
Source

Also in C#: