Repeat a string: Difference between revisions
Content added Content deleted
m (→Version #2. Simple loop based.: editing lang tag) |
(→{{header|beeswax}}: beeswax example added) |
||
Line 222: | Line 222: | ||
=={{header|BBC BASIC}}== |
=={{header|BBC BASIC}}== |
||
<lang bbcbasic> PRINT STRING$(5, "ha")</lang> |
<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}}== |
=={{header|Befunge}}== |
||
<lang Befunge>v> ">:#,_v |
<lang Befunge>v> ">:#,_v |