RosettaCodeData/Task/A+B/00DESCRIPTION

31 lines
648 B
Text
Raw Permalink Normal View History

2016-12-05 22:15:40 +01:00
<big>'''A+B'''</big> &nbsp; ─── a classic problem in programming contests, &nbsp; it's given so contestants can gain familiarity with the online judging system being used.
2013-04-10 14:58:50 -07:00
2016-12-05 22:15:40 +01:00
;Task:
2019-09-12 10:33:56 -07:00
Given two integers, &nbsp; '''A''' and '''B'''.
2013-04-10 14:58:50 -07:00
2016-12-05 22:15:40 +01:00
Their sum needs to be calculated.
2013-04-10 14:58:50 -07:00
2016-12-05 22:15:40 +01:00
;Input data:
Two integers are written in the input stream, separated by space(s):
: <big><math>(-1000 \le A,B \le +1000)</math></big>
;Output data:
The required output is one integer: &nbsp; the sum of '''A''' and '''B'''.
;Example:
2013-04-10 14:58:50 -07:00
::{|class="standard"
2016-12-05 22:15:40 +01:00
! input &nbsp;
! output &nbsp;
2013-04-10 14:58:50 -07:00
|-
2016-12-05 22:15:40 +01:00
|<tt> 2 2 </tt>
|<tt> 4 </tt>
2013-04-10 14:58:50 -07:00
|-
2016-12-05 22:15:40 +01:00
|<tt> 3 2 </tt>
|<tt> 5 </tt>
2013-04-10 14:58:50 -07:00
|}
2016-12-05 22:15:40 +01:00
<br><br>