Jump to content

Repeat a string: Difference between revisions

→‎{{header|beeswax}}: beeswax example added
(→‎{{header|beeswax}}: beeswax example added)
Line 222:
=={{header|BBC BASIC}}==
<lang bbcbasic> PRINT STRING$(5, "ha")</lang>
 
 
=={{header|beeswax}}==
<lang beeswax> p <
p0~1<}~< d@<
_VT@1~>yg~9PKd@M'd;</lang>
 
 
Example:
 
<pre>julia> beeswax("repeat a string.bswx")
sha
i5
hahahahaha
Program finished!</pre>
<code>s</code> tells the user that the program expects a string as input.
<code>i</code> tells the user that the program expects an integer as input.
 
=={{header|Befunge}}==
<lang Befunge>v> ">:#,_v
136

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.