Input/Output for pairs of numbers: Difference between revisions
Input/Output for pairs of numbers (view source)
Revision as of 15:29, 20 February 2022
, 2 years agoAdded XPL0 example.
m (→{{header|Phix}}: added syntax colouring, marked p2js incompatible) |
(Added XPL0 example.) |
||
Line 959:
5 5
3
30
2
102
10
</pre>
=={{header|XPL0}}==
The input file must be redirected on the command line, for example: iopair <iopair.txt
<lang XPL0>int N;
for N:= 1 to IntIn(1) do
[IntOut(0, IntIn(1) + IntIn(1));
CrLf(0);
]</lang>
{{out}}
<pre>
3
30
|