![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re^2: Fibonacci Generatorby Anonymous Monk |
on May 26, 2007 at 10:02 UTC ( #617662=note: print w/replies, xml ) | Need Help?? |
could try this out -
if (n==1 || n == 2) {
return 1;}
else {
return (fib(n-1) + fib(n-2));
}
In Section
Code Catacombs
|
|