Repeat a string: Difference between revisions

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


:END</lang>
:END</lang>

=={{header|BaCon}}==
To repeat a string:
<lang qbasic>DOTIMES 5
s$ = s$ & "ha"
DONE
PRINT s$
</lang>
{{out}}
<pre>
hahahahaha
</pre>
To repeat one single character:
<lang qbasic>PRINT FILL$(5, ASC("x"))
</lang>
{{out}}
<pre>
xxxxx
</pre>


=={{header|BBC BASIC}}==
=={{header|BBC BASIC}}==