Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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