As you have nothing to do you might also want to take a look at Binet's formula to calculate Fibonacci numbers. See for example here or on wiki. It would be interesting to implement it and compare it to your solution. Fibonacci has been studied a lot and has many (surprising) applications like in trading (finance)!
In reply to Re: fibonacci numbers using subroutine?
by dHarry
in thread fibonacci numbers using subroutine?
by derpp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |