From cb9e3852151fbf6a2dac752c32fcebe2049a9972 Mon Sep 17 00:00:00 2001 From: daviddoji Date: Tue, 15 Jun 2021 19:40:23 +0200 Subject: [PATCH] Add problem statement --- src/Julia/Problem002.jl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Julia/Problem002.jl b/src/Julia/Problem002.jl index 77288e4..34bb301 100644 --- a/src/Julia/Problem002.jl +++ b/src/Julia/Problem002.jl @@ -10,7 +10,13 @@ https://projecteuler.net/problem=2 function Problem2() #= - Statement + 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, 13, 21, 34, 55, 89, ... + + Find the sum of all the even-valued terms in the sequence which do not + exceed four million. =# ans = 0 @@ -23,7 +29,7 @@ function Problem2() y = z + x z = x + y end - + return ans end