Jump to content

Repeat a string: Difference between revisions

m
No edit summary
Line 2:
 
If there is a simpler/more efficient way to repeat a single “character” (i.e. creating a string filled with a certain character), you might want to show that as well (i.e. repeat-char("*", 5) => "*****").
 
=={{header|4DOS Batch}}==
<lang 4DOS Batch></lang>
Output shows:
<pre></pre>
 
=={{header|ActionScript}}==
Line 22 ⟶ 27:
return tmp + tmp;
}</lang>
 
=={{header|Ada}}==
In [[Ada]] multiplication of an universal integer to string gives the desired result. Here is an example of use:
138

edits

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