Talk:Repeat a string: Difference between revisions

From Rosetta Code
Content added Content deleted
(added a comment. -- ~~~~)
m (adjusted the indentation. -- ~~~~)
Line 1: Line 1:
The goal is to obtain a string, or to print some text X times? --[[User:SenTalker|SenTalker]] 21:28, 28 October 2012 (UTC)
The goal is to obtain a string, or to print some text X times? --[[User:SenTalker|SenTalker]] 21:28, 28 October 2012 (UTC)


I took it to mean:
: I took it to mean:
* a string is already defined (say, the contents of a variable)
* a string is already defined (say, the contents of a variable)
* repeat that string five times.
* repeat that string some number of times.
-- [[User:Gerard Schildberger|Gerard Schildberger]] 21:33, 28 October 2012 (UTC)
-- [[User:Gerard Schildberger|Gerard Schildberger]] 21:33, 28 October 2012 (UTC)

Revision as of 21:35, 28 October 2012

The goal is to obtain a string, or to print some text X times? --SenTalker 21:28, 28 October 2012 (UTC)

I took it to mean:
  • a string is already defined (say, the contents of a variable)
  • repeat that string some number of times.

-- Gerard Schildberger 21:33, 28 October 2012 (UTC)