We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Project Euler #2: Even Fibonacci numbers
Project Euler #2: Even Fibonacci numbers
Sort by
recency
|
622 Discussions
|
Please Login in order to post a comment
Easier than #1
Python 3 solution. Thoughts?
public static long fibonacci(long count){ long i= 0, k = 0, j= 1; long sum = 0; while(i
import sys
t = int(input().strip()) for a0 in range(t): n = int(input().strip()) p=0 a=0 b=1 c=0 while c a=b
b=c if c%2==0 and c
En Java