All problems
Sum of Two Numbers
easyPythonBasicsI/O
Whetcode Supply counts each shelf twice: one clerk counts the front, another counts the back. The stock system receives the two counts as separate readings and needs the combined figure. A reading can be negative, because a correction is entered as a negative count.
Task: Print the two readings added together.
Input
Two lines. Line 1 holds one integer a. Line 2 holds one integer b. Either value may be negative or zero.
Output
One line holding a single integer — the total. Nothing else on the line.
Example:
Input:
3
5
Output:
8
Sign in to solve this problem
Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.
Sign in