title: How to calculate the first n even integers?
body: <p>So I am having a hard time calculating the first n even integers, n is the amount of number(s) so an example would be like calculate the first 10 even integers. Down below is the amount of code I was able to come up with</p>
  <pre><code>int evenNum(int n){
  int curr = 2, sum = 0;
  
  for(int i = 1; i &lt;= n; i++){
    sum += curr;
    curr += 2;
  }
  return sum;
  }
  </code></pre>