Generation

generate functionSun, 19 Feb 2023

Suite de fibonacci

function fib(num){ let a = 1, b = 0, temp; while (num >= 0){ temp = a; a = a + b; b = temp; num--; } return b; } fib(5)

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant