Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Fibonacci numbers

function Fibonacci(num){
	        var before = 0;
	        var actual = 1;
	        var next = 1;

	        for(let i = 0; i < num; i++){
		        console.log(next)
		        before = actual + next;
		        actual = next
		        next = before
	        }
        }

        Fibonacci(100);
Source by stickynotepickles.herokuapp.com #
 
PREVIOUS NEXT
Tagged: #Fibonacci #numbers
ADD COMMENT
Topic
Name
3+6 =