Repeat a string: Difference between revisions

m
Put Bracmat in alphabetic order (before Brainf***)
m (Put Bracmat in alphabetic order (before Brainf***))
Line 120:
=={{header|BBC BASIC}}==
<lang bbcbasic> PRINT STRING$(5, "ha")</lang>
 
=={{header|Brainf***}}==
Prints "ha" 10 times. Note that this method only works for a number of repetitions that fit into the cell size.
<lang bf>+++++ +++++ init first as 10 counter
[-> +++++ +++++<] we add 10 to second each loopround
 
Now we want to loop 5 times to follow std
+++++
[-> ++++ . ----- -- . +++<] print h and a each loop
 
and a newline because I'm kind and it looks good
+++++ +++++ +++ . --- .</lang>
 
=={{header|Bracmat}}==
Line 147 ⟶ 135:
<pre> repeat$(ha.5)
hahahahaha</pre>
 
=={{header|Brainf***}}==
Prints "ha" 10 times. Note that this method only works for a number of repetitions that fit into the cell size.
<lang bf>+++++ +++++ init first as 10 counter
[-> +++++ +++++<] we add 10 to second each loopround
 
Now we want to loop 5 times to follow std
+++++
[-> ++++ . ----- -- . +++<] print h and a each loop
 
and a newline because I'm kind and it looks good
+++++ +++++ +++ . --- .</lang>
 
=={{header|Brat}}==
483

edits