Initial commit

Changes to be committed:
	new file:   problem_1.py
        new file:   problem_2.py
	new file:   problem_3.py
This commit is contained in:
2016-01-21 23:46:58 -08:00
commit 6d6ae816eb
3 changed files with 32 additions and 0 deletions

19
problem_2.py Normal file
View File

@@ -0,0 +1,19 @@
prev_two = 1;
prev_one = 0;
fib_num = 0
sum = 0
while True:
if fib_num > 4000000:
break
fib_num = prev_one + prev_two
if fib_num % 2 == 0:
sum += fib_num
prev_two = prev_one
prev_one = fib_num
print(sum)