aboutsummaryrefslogtreecommitdiff
path: root/test/fib2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/fib2.c')
-rw-r--r--test/fib2.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/test/fib2.c b/test/fib2.c
deleted file mode 100644
index 7ce545e92b..0000000000
--- a/test/fib2.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/* -*- mode: c -*-
- * $Id$
- * http://www.bagley.org/~doug/shootout/
- */
-
-int atoi(char *);
-void printf(char *, unsigned long);
-
-unsigned long
-fib(unsigned long n) {
- if (n < 2)
- return(1);
- else
- return(fib(n-2) + fib(n-1));
-}
-
-int
-main(int argc, char *argv[]) {
- int N = ((argc == 2) ? atoi(argv[1]) : 15);
- printf("%ld\n", fib(N));
- return(0);
-}