summaryrefslogtreecommitdiff
path: root/fib.awk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--fib.awk3
1 files changed, 3 insertions, 0 deletions
diff --git a/fib.awk b/fib.awk
index 7baef76..01cb8ce 100644
--- a/fib.awk
+++ b/fib.awk
@@ -1,6 +1,9 @@
#!/usr/bin/awk -f
### fib.awk
+# print nth Fibonacci number, based on R. Hamming's solution to a diff eqn
+# form of the sequence
+
BEGIN {
ARGV[1] ? n = ARGV[1] : n = 0