RosettaCodeData/Task/Repeat-a-string/MUMPS/repeat-a-string-1.mumps
2023-07-01 13:44:08 -04:00

9 lines
162 B
Text

RPTSTR(S,N)
;Repeat a string S for N times
NEW I
FOR I=1:1:N WRITE S
KILL I
QUIT
RPTSTR1(S,N) ;Functionally equivalent, but denser to read
F I=1:1:N W S
Q