Jump to content

Repeat a string: Difference between revisions

no edit summary
No edit summary
Line 238:
 
: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}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.