bunch more testcases

This commit is contained in:
Nathan Braswell
2022-04-12 00:14:09 -04:00
parent 55afa8977e
commit c6071dbbe1
17 changed files with 508 additions and 0 deletions

14
fib.c Normal file
View File

@@ -0,0 +1,14 @@
int fib(n) {
if (n == 0) {
return 1;
} else if (n == 1) {
return 1;
} else {
return fib(n-1) + fib(n-2);
}
}
int main(int argc, char **argv) {
printf("%d\n", fib(atoi(argv[1])));
return 0;
}