Print out the sum of only the even numbers of a fibonacci series of number N.
The Fibonacci sequence is present throughout the natural world. Most programmers are familiar with the sequence which starts 0,1,1,2,3,5,8,13 and continues to any given upper limit. Each new term in the Fibonacci sequence is generated by adding the previous two terms. In this kata we would like you to create a calculator that will return the sum of all the even numbers from a Fibonacci sequence of a given length. So, for length 7 the result would be 10 which is (2 + 8). The Goal
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
The architecture to your even Fibonacci calculator can be anything you like but we’d suggest passing in a single integer to represent the length to begin with. Feel free to use any language, and write the tests in any order you prefer. In this implementation we have used CSharp programming language to achieve the goal in hand.
The solution lives in the The_Even_Fibonacci_Sum_Calculator folder of this project. Just compile (build) and excute (run). Enjoy!
Project inspiration from hibri/pair-programming-interview-resources: https://github.com/hibri/pair-programming-interview-resources/wiki/The-Even-Fibonacci-Sum-Calculator