Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

fibonacci sequence

function _fib(number) {
    if (number === 0 || number === 1) {
        return number;
    } else {
        return _fib(number - 1) + _fib(number - 2)
    }
}
Source by www.mathsisfun.com #
 
PREVIOUS NEXT
Tagged: #fibonacci #sequence
ADD COMMENT
Topic
Name
1+6 =