Repeat a string: Difference between revisions
Content added Content deleted
PatGarrett (talk | contribs) (→{{header|PL/I}}: Add repeat function) |
PatGarrett (talk | contribs) (→{{header|PL/I}}: A correction) |
||
Line 1,544: | Line 1,544: | ||
=={{header|PL/I}}== |
=={{header|PL/I}}== |
||
<lang PL/I> |
<lang PL/I> |
||
/* To repeat a string a |
/* To repeat a string a variable number of times: */ |
||
s = repeat('ha', 4); |
s = repeat('ha', 4); |