Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Repeat-a-string/Lingo/repeat-a-string-1.lingo
Normal file
7
Task/Repeat-a-string/Lingo/repeat-a-string-1.lingo
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
on rep (str, n)
|
||||
res = ""
|
||||
repeat with i = 1 to n
|
||||
put str after res
|
||||
end repeat
|
||||
return res
|
||||
end
|
||||
2
Task/Repeat-a-string/Lingo/repeat-a-string-2.lingo
Normal file
2
Task/Repeat-a-string/Lingo/repeat-a-string-2.lingo
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
put rep("ha", 5)
|
||||
-- "hahahahaha"
|
||||
2
Task/Repeat-a-string/Lingo/repeat-a-string-3.lingo
Normal file
2
Task/Repeat-a-string/Lingo/repeat-a-string-3.lingo
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
put bytearray(5, chartonum("*")).readRawString(5)
|
||||
-- "*****"
|
||||
Loading…
Add table
Add a link
Reference in a new issue