Console.WriteLine(\"Enter the cost of the item\"); string input = Console.ReadLine(); double price = Convert.ToDouble(input);
This MSDN article explains how to read characters one at a time in a console window. Test each character as it is input with the Char.IsNumber() method, and reject those characters that fail the test.