title: Why is this Fibonacci code not correct?
body: <p>Project Euler Question 2.</p>
  <blockquote>
  <p>Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:</p>
  <p>1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...</p>
  <p>By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.</p>
  </blockquote>
  <p>My solution :</p>
  <pre><code>int firstNum = 1;
  int secondNum = 2;
  int resultNum = firstNum + secondNum;
  int sum = 0;
  
  for (int i = 0; i &lt; 4000000; i++)
  {
      firstNum = i;
      secondNum = i;
  
      if(resultNum == firstNum + secondNum)
      {
          sum += resultNum;
          Console.WriteLine(sum);
      }
  }
  </code></pre>
  <p>Why is this not correct and can you guide me into the right way of thinking?</p>