Repeat a string: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1,060: | Line 1,060: | ||
println[repeat["ha", 5]] |
println[repeat["ha", 5]] |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
=={{header|FutureBasic}}== |
|||
<syntaxhighlight lang="futurebasic"> |
|||
include "NSLog.incl" |
|||
CFStringRef repeatStr |
|||
repeatStr = @"Hello, World!\n" |
|||
NSLog( @"%@", fn StringByPaddingToLength( @"", 50 * len(repeatStr), repeatStr, 0 ) ) |
|||
HandleEvents |
|||
</syntaxhighlight> |
|||
{{output}} |
|||
<pre> |
|||
[50 line repetitions of "Hello, World!"] |
|||
</pre> |
|||
=={{header|Gambas}}== |
=={{header|Gambas}}== |