diff --git a/2/main.py b/2/main.py new file mode 100644 index 0000000..2a53eee --- /dev/null +++ b/2/main.py @@ -0,0 +1,21 @@ +import os + + + +# Find the sum of all Fibonacci numbers below four million + + +s = 0 + +n = 1 +m = 1 + +while m < 4000000: + temp = m + m = n + temp + n = temp + + if m % 2 == 0: + s = s + m + +print(s) \ No newline at end of file