A+B: Difference between revisions

Content added Content deleted
(Added Unix Shell solution, using bash)
(Task description formatting & slight wording changes that don't affect the goal of the task.)
Line 4: Line 4:
A+B is one of few problems on contests, which traditionally lacks fabula.
A+B is one of few problems on contests, which traditionally lacks fabula.


== Problem statement ==
'''Problem statement'''<br>
Given 2 integer numbers, A and B. One needs to find their sum.
Given 2 integer numbers, A and B. One needs to find their sum.


=== Input data ===
:'''Input data'''<br>
In input stream, two integer numbers are written, separated by space.
:Two integer numbers are written in the input stream, separated by space.
<math>(-1000 \le A,B \le +1000)</math>
:<math>(-1000 \le A,B \le +1000)</math>
=== Output data ===
In output, should be one integer be written: sum of A and B.


:'''Output data'''<br>
=== Example ===
:The required output is one integer: the sum of A and B.
{|class="standard"

:'''Example:'''<br>
::{|class="standard"
! Input
! Input
! Output
! Output
Line 25: Line 26:
|}
|}



= Solutions =
=={{header|Ada}}==
=={{header|Ada}}==
<lang Ada>-- Standard I/O Streams
<lang Ada>-- Standard I/O Streams