Repeat a string: Difference between revisions

Content added Content deleted
No edit summary
Line 336: Line 336:


alert("ha".repeat(5)); // hahahahaha</lang>
alert("ha".repeat(5)); // hahahahaha</lang>

=={{header|Liberty BASIC}}==
<lang lb>a$ ="ha "
print StringRepeat$( a$, 5)

end

function StringRepeat$( in$, n)
o$ =""
for i =1 to n
o$ =o$ +in$
next i
StringRepeat$ =o$
end function</lang>


=={{header|Logo}}==
=={{header|Logo}}==