Repeat a string: Difference between revisions
Content added Content deleted
Line 1,173: | Line 1,173: | ||
=={{header|TorqueScript}}== |
=={{header|TorqueScript}}== |
||
<lang TorqueScript> |
<lang TorqueScript>function strRep(%str,%int) |
||
function strRep(%str,%int) |
|||
{ |
{ |
||
for(%i = 0; %i < %int; %i++) |
for(%i = 0; %i < %int; %i++) |
||
Line 1,182: | Line 1,181: | ||
return %rstr; |
return %rstr; |
||
⚫ | |||
} |
|||
⚫ | |||
=={{header|UNIX Shell}}== |
=={{header|UNIX Shell}}== |