String concatenation: Difference between revisions
m
no edit summary
mNo edit summary |
Drkameleon (talk | contribs) mNo edit summary |
||
Line 84:
<pre>Hello
Hello, World!</pre>
=={{header|ALGOL 68}}==▼
{{works with|ALGOL 68|Revision 1 - no extensions to language used}}▼
{{works with|ALGOL 68G|Any - tested with release [http://sourceforge.net/projects/algol68/files/algol68g/algol68g-1.18.0/algol68g-1.18.0-9h.tiny.el5.centos.fc11.i386.rpm/download 1.18.0-9h.tiny]}}▼
{{works with|ELLA ALGOL 68|Any (with appropriate job cards) - tested with release [http://sourceforge.net/projects/algol68/files/algol68toc/algol68toc-1.8.8d/algol68toc-1.8-8d.fc9.i386.rpm/download 1.8-8d]}}▼
<lang algol68>STRING s := "hello";▼
print ((s + " literal", new line));▼
STRING s1 := s + " literal";▼
print ((s1, new line))</lang>▼
{{out}}▼
<pre>▼
hello literal▼
hello literal▼
</pre>▼
=={{header|Apex}}==
Line 180 ⟶ 194:
</lang>
=={{header|Arturo}}==▼
<lang arturo>str1: "Hello "▼
str2: "World"▼
print str1 + str2 + "!"</lang>▼
{{out}}▼
<pre>Hello World!</pre>▼
=={{header|AutoHotkey}}==
Line 202 ⟶ 228:
L₁
Return</lang>
▲=={{header|ALGOL 68}}==
▲{{works with|ALGOL 68|Revision 1 - no extensions to language used}}
▲{{works with|ALGOL 68G|Any - tested with release [http://sourceforge.net/projects/algol68/files/algol68g/algol68g-1.18.0/algol68g-1.18.0-9h.tiny.el5.centos.fc11.i386.rpm/download 1.18.0-9h.tiny]}}
▲{{works with|ELLA ALGOL 68|Any (with appropriate job cards) - tested with release [http://sourceforge.net/projects/algol68/files/algol68toc/algol68toc-1.8.8d/algol68toc-1.8-8d.fc9.i386.rpm/download 1.8-8d]}}
▲<lang algol68>STRING s := "hello";
▲print ((s + " literal", new line));
▲STRING s1 := s + " literal";
▲print ((s1, new line))</lang>
▲{{out}}
▲<pre>
▲hello literal
▲hello literal
▲</pre>
▲=={{header|Arturo}}==
▲<lang arturo>str1 "Hello "
▲str2 "World"
▲print str1 + str2 + "!"</lang>
▲{{out}}
▲<pre>Hello World!</pre>
=={{header|BASIC}}==
|