title: trying to find the sum of even fibonacci numbers to 4 million
body: <p>I am trying to find the sum of the even Fibonacci numbers up untill 4 million.
  I found the numbers but i can't get them add up... in the if(n % 2 ==0) loop</p>
  
  <pre><code>8
  34
  144
  610
  2584
  10946
  46368
  196418
  832040
  3524578
  </code></pre>
  
  <hr>
  
  <pre><code> public static void number2()
   {
      int number = 40;
      int a, b, c;
      int numLim = 0;
       a = 1;
       b = 2;
  
      while(numLim &lt; 4000000)
      {
          c = a + b;
          a = b;
          b = c;
          numLim = b;
          if(numLim &gt; 4000000)
          {
               break;
          }
          int sum = 0;
          if(numLim % 2 == 0)
          { 
              System.out.println(numLim);
              sum = sum + numLim;
              System.out.println("sum :" +sum);
          }
      }
  }
  </code></pre>