Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (9 sloc) 0.148 kB
#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;
}
Jump to Line
Something went wrong with that request. Please try again.