Find the sum of even numbers in the Fibonacci till N
Find the sum of even numbers in the Fibonacci till N
Input:
15
Output:
10
Explanation:
The Fibonacci series till 15 is:
0 1 1 2 3 5 8 13
& the even numbers in the series are:
2 and 8. So, the sum of 2+8 = 10 is the output.
Implementation: