add double loop example program
This commit is contained in:
parent
f07a256fe6
commit
d1a8792b18
2 changed files with 23 additions and 0 deletions
|
@ -1,2 +1,4 @@
|
||||||
|
This program prints the input and exits when it has read everything.
|
||||||
|
|
||||||
@00000 11\
|
@00000 11\
|
||||||
\!=?1/
|
\!=?1/
|
||||||
|
|
21
programs/double_loop.worm
Normal file
21
programs/double_loop.worm
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
This program alternates between two loops, running each one 8 times each.
|
||||||
|
|
||||||
|
@00000v
|
||||||
|
v00000<
|
||||||
|
8
|
||||||
|
8
|
||||||
|
+
|
||||||
|
=
|
||||||
|
+ /2 \
|
||||||
|
8 =
|
||||||
|
8 +
|
||||||
|
+ +
|
||||||
|
+ 8
|
||||||
|
= 8
|
||||||
|
> 1/
|
||||||
|
4
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
3
|
||||||
|
\=++88/
|
Loading…
Reference in a new issue