this is my program that i wrote in C# in visual studio 2010 Ultimate and 2008 Team System:
class Program { static void Main(string[] args) {
Try this to reach your goal:
class Program { static void Main(string[] args) { Console.WriteLine("Enter a number: "); ConsoleKeyInfo a = Console.ReadKey(); Console.WriteLine("you Entered : {0}",a.KeyChar); Console.ReadKey(); } }