Repeat a string: Difference between revisions
Content added Content deleted
Line 339: | Line 339: | ||
=={{header|PureBasic}}== |
=={{header|PureBasic}}== |
||
<lang PureBasic>Procedure RepeatString(text |
<lang PureBasic>Procedure.s RepeatString(count, text$=" ") |
||
Protected i, ret$="" |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
If OpenConsole() |
|||
⚫ | |||
RepeatString() ; Print Default Txt, default times |
|||
⚫ | |||
RepeatString("New Text!"+#CRLF$) ; Print this text default times |
|||
ProcedureReturn ret$ |
|||
RepeatString("** Yet a New **",3) ; Uses these parameters |
|||
⚫ | |||
Input(): CloseConsole() ; Wait for a 'ENTER', then quit |
|||
EndIf </lang> |
|||
=={{header|Python}}== |
=={{header|Python}}== |