Commit d139ddc4 authored by Xavier Thompson's avatar Xavier Thompson

Add test program func_fibo.cpp for comparison purposes

parent 8e9690eb
#include <cstdio>
int fibo(int n) {
if (n < 2) {
return n;
}
int a = fibo(n - 1);
int b = fibo(n - 2);
return a + b;
}
int main() {
int result = fibo(40);
printf("%d\n", result);
puts("done");
return 0;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment