asking for user input integer c#

C#
int intTemp = Convert.ToInt32(Console.ReadLine());
Source

Also in C#: