title: How would I go about finding the average of a set of integers from a for loop (in C++)
body: <p>I'm prompting the user to enter an integer for x (between 3 and 10), and  enter integer y (between 6 and 20). Then, I'm supposed to have the values for said numbers printed out, and find an average for them.</p>
  <pre><code>while (x &lt; 3 || x &gt; 10) 
  while (y &lt; 6 || y &gt; 20)  
  </code></pre>
  <p>Say the user enters: x = 3 and y = 6</p>
  <p>The set (range of integers) would be (3 4 5 6)</p>
  <p>Now I have to find the average between them, without the user entering in the number for how big the set is</p>