Old .gitignore actually prevent the kraken versions of the benchmarks from being comitted, scarily enough - also some of the c fib tests
This commit is contained in:
17
working_files/fib.c
Normal file
17
working_files/fib.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user