Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Repeat-a-string/BASIC256/repeat-a-string.basic
Normal file
12
Task/Repeat-a-string/BASIC256/repeat-a-string.basic
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
function StringRepeat$ (s$, n)
|
||||
cad$ = ""
|
||||
for i = 1 to n
|
||||
cad$ += s$
|
||||
next i
|
||||
return cad$
|
||||
end function
|
||||
|
||||
print StringRepeat$("rosetta", 1)
|
||||
print StringRepeat$("ha", 5)
|
||||
print StringRepeat$("*", 5)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue