title: How do I create a check for this code?
body: <p>I'm trying to make it so that the code checks if the user input is between (and including) 10 and 100.</p>
  
  <p>Being so used to just single inputs, I'm having trouble since it's an array...</p>
  
  <pre><code>int main()
  {
      int numlist[20];
  
      for(int i = 0; i &lt; 20; i++)
      {
          cout &lt;&lt; "Enter # " &lt;&lt; i + 1 &lt;&lt; " : ";
  
          // here is where I am going wrong... 
  
          if ((numlist[i] &lt;= 100) &amp;&amp; (numlist[i] &gt;= 10))
          {
              cin &gt;&gt; numlist[i];
          }
      }
  }
  </code></pre>