Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 148 Bytes
#include <stdio.h>
int fib(int n) {
if (n < 2) return 1;
return fib(n-1) + fib(n-2);
}
int main() {
printf("%d\n", fib(20));
return 0;
}