Repeat a string: Difference between revisions

PascalABC.NET
(Added various BASIC dialects (Chipmunk Basic, GW-BASIC, Minimal BASIC, MSX Basic, Quite BASIC and XBasic))
(PascalABC.NET)
 
(3 intermediate revisions by 3 users not shown)
Line 1,035:
 
=={{header|Elena}}==
ELENA 46.x :
<syntaxhighlight lang="elena">import system'routines;
import extensions;
Line 1,042:
public program()
{
var s := new Range(0, 5).selectBy::(x => "ha").summarize(new StringWriter())
}</syntaxhighlight>
 
Line 1,616:
 
=={{header|langur}}==
<syntaxhighlight lang="langur">"ha" x* 5</syntaxhighlight>
This example looks like Perl, but the x operator doesn't just multiply strings in langur.
<syntaxhighlight lang="langur">"ha" x 5</syntaxhighlight>
 
=={{header|Lasso}}==
Line 2,090 ⟶ 2,089:
=={{header|Pascal}}==
See [[#Delphi|Delphi]] or [[#Free Pascal|Free Pascal]], as standard Pascal does not know strings of unlimited length.
 
=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
##
Print('ha' * 5)
</syntaxhighlight>
{{out}}
<pre>
hahahahaha
</pre>
 
 
=={{header|Perl}}==
Line 3,081 ⟶ 3,091:
 
=={{header|Wren}}==
<syntaxhighlight lang="ecmascriptwren">System.print("ha" * 5)</syntaxhighlight>
 
{{out}}
222

edits