]> thyrsus.com Git - cupl.git/commitdiff
Initial revision
authorEric S. Raymond <esr@thyrsus.com>
Thu, 3 Nov 1994 05:25:00 +0000 (05:25 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 3 Nov 1994 05:25:00 +0000 (05:25 +0000)
test/rise.cupl [new file with mode: 0644]

diff --git a/test/rise.cupl b/test/rise.cupl
new file mode 100644 (file)
index 0000000..8673407
--- /dev/null
@@ -0,0 +1,14 @@
+COMMENT        COMPARE ITERATED INCREMENT, DOUBLING, SQUARING, AND MULTIPLICATION
+       LET K = 0
+       LET M = 1
+       LET P = 10
+       LET F = 1
+       PERFORM CHANGE N TIMES
+       WRITE K,M,P,F
+       STOP
+CHANGE BLOCK
+       LET K = K + 1
+       LET M = 2*M
+       LET P = P**2
+       LET F = F*K
+CHANGE END