Massive updates to the website

This commit is contained in:
Nathan Braswell
2020-05-12 16:22:41 -04:00
parent dac3e41101
commit c799cf485b
5 changed files with 239 additions and 80 deletions

17
fib.c Normal file
View File

@@ -0,0 +1,17 @@
#include <stdio.h>
int fib(int n) {
if (n == 0) {
return 0;
} else if (n == 1) {
return 1;
} else {
return fib(n-1) + fib(n-2);
}
}
int main(int argc, char** argv) {
int n = 27;
printf("Fib(%d): %d\n", n, fib(n));
return 0;
}