September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 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