diff options
| author | Carson Fleming <cflems@cflems.net> | 2026-07-17 04:37:37 -0400 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2026-07-17 04:53:31 -0400 |
| commit | 99af8891f6672493939bf3b43084082884e28d04 (patch) | |
| tree | b1f94d8b78b96e0258bef9133ffa9c8faeb2e2b7 /test/fibonacci.c | |
| parent | 82cf7004e351c9003af3019b2f7434ed8eeabf3e (diff) | |
| download | ccc-99af8891f6672493939bf3b43084082884e28d04.tar.gz | |
fix scope thing
Diffstat (limited to 'test/fibonacci.c')
| -rw-r--r-- | test/fibonacci.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/fibonacci.c b/test/fibonacci.c new file mode 100644 index 0000000..c241be9 --- /dev/null +++ b/test/fibonacci.c @@ -0,0 +1,8 @@ +int fib (int n) { + if (n <= 1) return 1; + return n * fib(n - 1); +} + +int main (int argc, char** argv) { + return fib(argc); +} |
