Prerequisites: Basic course part I
Each new term in the Fibonacci sequence is the sum of the two preceding terms. Starting with 1 and 2, the first ten terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
Find the sum of the terms in the Fibonacci sequence whose values do not exceed four million and are even-valued. Only print the sum.
This is an English translation of the second problem on Project Euler.
-- Output from your program will be here --