Answers for "number of fibonacci"

0

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);
Posted by: Guest on December-20-2021

Python Answers by Framework

Browse Popular Code Answers by Language