Anonymous user
Repeat a string: Difference between revisions
→{{header|Mirah}}
Line 502:
<br>
Note 2: To repeat a string, use single quotes. Example: S=repeat('ha',5)
=={{header|Mirah}}==
<lang mirah>x = ""
5.times do
x = x + "ha"
end
puts x # ==> "hahahahaha"</lang>
=={{header|MUMPS}}==
|