Hacker News new | past | comments | ask | show | jobs | submit login

    >   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 ;)



* cough *

Fixed. Thanks.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: