aboutsummaryrefslogtreecommitdiff
path: root/examples/sum-first-odd-integers.urm
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sum-first-odd-integers.urm')
-rw-r--r--examples/sum-first-odd-integers.urm21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/sum-first-odd-integers.urm b/examples/sum-first-odd-integers.urm
new file mode 100644
index 0000000..e476a5a
--- /dev/null
+++ b/examples/sum-first-odd-integers.urm
@@ -0,0 +1,21 @@
1ZERO 2
2SUCC 2
3ZERO 3
4JUMP 2 1 10
5ZERO 4
6JUMP 2 4 10
7JUMP 1 4 20
8SUCC 4
9ZERO 6
10JUMP 6 6 5
11ZERO 5
12JUMP 2 5 16
13SUCC 3
14SUCC 5
15ZERO 7
16JUMP 7 7 11
17SUCC 2
18SUCC 2
19ZERO 8
20JUMP 8 8 3
21COPY 1 3