September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
12
Task/Loops-Continue/Dc/loops-continue.dc
Normal file
12
Task/Loops-Continue/Dc/loops-continue.dc
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
1 si # i = 1
|
||||
[2Q]sA # A = code to break loop
|
||||
[[, ]P 1J]sB # B = code to print comma, continue loop
|
||||
[
|
||||
li n # print i
|
||||
li 5 % 0 !=B # call B if i % 5
|
||||
[
|
||||
]P # print newline
|
||||
M # mark from calling B
|
||||
li 1 + si # i += 1
|
||||
li 10!<C # continue loop if 10 >= i
|
||||
]sC li 10!<C # enter loop if 10 >= i
|
||||
Loading…
Add table
Add a link
Reference in a new issue