Month: May 2012

Euler’s Prob.2 – PHP Program to find the sum of the even-valued terms in the Fibonacci

Euler’s Prob.2 – PHP Program to find the sum of the even-valued terms in the Fibonacci

PHP script for the Euler’s Problem 2.

Question:

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:

1, 2, 3, 5, 8, …

Theme: Overlay by Kaira
Agurchand