title: How do I only allow number input into my C# Console Application?
body: <pre><code>Console.WriteLine("Enter the cost of the item");                           
  string input = Console.ReadLine();
  double price = Convert.ToDouble(input);
  </code></pre>
  
  <p>Hello, I want the keyboard buttons, A-Z, brackets, question mark, etc to be disabled. I want it so if you type it in, it will not show up in the Console. I only want the numbers 1-9 to show up. This is in C# Console application. Thanks for the help! </p>