summary refs log tree commit diff stats
path: root/tinyc/win32/examples/fib.c
diff options
context:
space:
mode:
Diffstat (limited to 'tinyc/win32/examples/fib.c')
-rwxr-xr-xtinyc/win32/examples/fib.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/tinyc/win32/examples/fib.c b/tinyc/win32/examples/fib.c
deleted file mode 100755
index 6a4bdf5c4..000000000
--- a/tinyc/win32/examples/fib.c
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <stdio.h>
-#include <math.h>
-
-int fib(int n)
-{
-	if (n <= 2)
-		return 1;
-	else
-		return fib(n-1) + fib(n-2);
-}
-
-int main(int argc, char **argv) 
-{
-	int n;
-	if (argc < 2) {
-		printf("usage: fib n\n"
-			   "Compute nth Fibonacci number\n");
-		return 1;
-	}
-		
-	n = atoi(argv[1]);
-	printf("fib(%d) = %d\n", n, fib(n));
-	return 0;
-}