title: How to force the console to only accept a number within a certain range?
body: <p>I have this code where I input a name, and then an integer.  The application will then repeat the name entered according to the integer specified.  The issue i'm having is, I only want the user to be able to repeat the name a max of 10 times and and min of 1. Here is what i have thus far.</p>
  
  <pre><code>Console.Write("PLEASE ENTER YOUR FIRST AND LAST NAME: ");
  string Name = Console.ReadLine();
  
  Console.Write("Enter the number of times you wish for me to repeat your name, " + Name );
  int number = Int32.Parse(Console.ReadLine());
  
  for (int i = 0; i &lt; number; i++)        
      Console.WriteLine(""+ Name);
  Console.ReadKey();
  </code></pre>
  
  <p>EDIT: If someone sees an easier way of doing what I have, I would be happy to suggestions!</p>