Repeat a string: Difference between revisions
Content added Content deleted
PatGarrett (talk | contribs) m (→{{header|Visual Basic}}: Suppress space) |
PatGarrett (talk | contribs) (→{{header|PL/I}}: Add repeat function) |
||
Line 1,543: | Line 1,543: | ||
=={{header|PL/I}}== |
=={{header|PL/I}}== |
||
<lang PL/I> |
<lang PL/I> |
||
/* To repeat a string a fixed number of times: */ |
|||
s = repeat('ha', 4); |
|||
/* or */ |
|||
s = copy('ha', 5); |
|||
/* To repeat a single character a fixed number of times: */ |
/* To repeat a single character a fixed number of times: */ |