I am writing a \"simple\" program to determine the Nth number in the Fibonacci sequence. Ex: the 7th number in the sequence is: 13. I have finished writing the program, it
Too slow...
Better: (JavaScript example)
function fibonacci(n) { var a = 0, b = 1; for (var i = 0; i < n; i++) { a += b; b = a - b; } return a; }