Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Loops-For/Dc/loops-for.dc
Normal file
15
Task/Loops-For/Dc/loops-for.dc
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[
|
||||
[*]P [print asterisk]sz
|
||||
lj 1 + d sj [increment j, leave it on stack]sz
|
||||
li !<A [continue loop if i >= j]sz
|
||||
]sA
|
||||
[
|
||||
1 d sj [j = 1, leave it on stack]sz
|
||||
li !<A [enter loop A if i >= j]sz
|
||||
[
|
||||
]P [print newline]sz
|
||||
li 1 + d si [increment i, leave it on stack]sz
|
||||
5 !<B [continue loop if 5 >= i]sz
|
||||
]sB
|
||||
1 d si [i = 1, leave it on stack]sz
|
||||
5 !<B [enter loop B if 5 >= i]sz
|
||||
Loading…
Add table
Add a link
Reference in a new issue