Repeat a string: Difference between revisions

Content added Content deleted
(→‎{{header|PL/I}}: Add repeat function)
(→‎{{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 fixed number of times: */
/* To repeat a string a variable number of times: */


s = repeat('ha', 4);
s = repeat('ha', 4);