in reply to Re: Fibonacci Generator
in thread Fibonacci Generator
could try this out -
if (n==1 || n == 2) {
return 1;}
else {
return (fib(n-1) + fib(n-2));
}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Fibonacci Generator
by blazar (Canon) on May 26, 2007 at 13:05 UTC |
In Section
Code Catacombs