Code Monkey home page Code Monkey logo

the-even-fibonacci-sum-calculator-in-csharp's Introduction

The-Even-Fibonacci-Sum-Calculator-In-CSharp

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.

Getting Started

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.

Solution Structure

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

the-even-fibonacci-sum-calculator-in-csharp's People

Contributors

somdipdey avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.