Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
13
Task/Strip-block-comments/Ring/strip-block-comments.ring
Normal file
13
Task/Strip-block-comments/Ring/strip-block-comments.ring
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
example = "123/*456*/abc/*def*/789"
|
||||
|
||||
example2 = example
|
||||
nr = 1
|
||||
while nr = 1
|
||||
n1 = substr(example2,"/*")
|
||||
n2 = substr(example2,"*/")
|
||||
if n1 > 0 and n2 > 0
|
||||
example3 = substr(example2,n1,n2-n1+2)
|
||||
example2 = substr(example2,example3,"")
|
||||
else nr = 0 ok
|
||||
end
|
||||
see example2 + nl
|
||||
Loading…
Add table
Add a link
Reference in a new issue