4 ms·
> fib(a) { return (a <= 1) ? 1 : (fib(a-1) + fib(a-2); } > > That's totally valid K&R C. Apart from, presumably, the missing closing parenthesis ;)
by Xophmeister 11y ago
> fib(a) { return (a <= 1) ? 1 : (fib(a-1) + fib(a-2); }
>
> That's totally valid K&R C.
Apart from, presumably, the missing closing parenthesis ;)
- david-given 11y ago* cough * Fixed. Thanks.