A+B: Difference between revisions

789 bytes added ,  14 years ago
m
(FALSE)
Line 38:
end APlusB;
</lang>
=={{header|ALGOL 68}}==
{{trans|python}}
 
{{works with|ALGOL 68|Standard - 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]}}
{{wont work with|ELLA ALGOL 68|Any (with appropriate job cards) - missing transput function "read int"}}
===Console===
<lang algol68>print((read int + read int))</lang>
Input:
<pre>
1 2
</pre>
Output:
<pre>
+3
</pre>
===File===
<lang algol68>FILE fin, fout;
open(stand in, "input.txt", stand in channel);
open(stand out, "output.txt", stand out channel);
print((read int + read int))</lang>
Input "input.txt":
<pre>
3 4
</pre>
Output "output.txt":
<pre>
+7
</pre>
 
=={{header|Argile}}==
{{trans|C}}