Repeat a string: Difference between revisions

(Removed locals, splitted up code in a string repetition and character repetition part.)
Line 337:
"hahahahaha"
></lang>
 
=={{header|PureBasic}}==
<lang PureBasic>Procedure RepeatString(text.s="Default Text.",num=10)
Define i=num
For i=0 To num
Print(text)
Next i
EndProcedure
 
If OpenConsole()
RepeatString() ; Print Default Txt, default times
RepeatString("New Text!"+#CRLF$) ; Print this text default times
RepeatString("** Yet a New **",3) ; Uses these parameters
Input(): CloseConsole() ; Wait for a 'ENTER', then quit
EndIf </lang>
 
=={{header|Python}}==
Anonymous user