Addition

Problem #1

Tags: computing instructional

Who solved this?

Next:Mean, Median, and Mode


Click Here for a full explanation of how to submit an answer, otherwise it will be briefly explained below.

Often it is a good idea to start simple, before getting more complicated. First let us review some basic mathematical operations which may already be familiar. Mathematically, an operation is some action performed onto some numbers (called the operands) to yield some new value. For example in a + b, + is the operation, with a and b being the operands.

We will begin with the simple operation of addition, in which we take two numbers called the addends or summands and merge them to yield them sum.

Addition

Addition has a few important properties to note:

Problem Statement

Input Data
In the box below titled "Test data" you will find a list of values on multiple lines.
The first will be an integer, indicating how many addends will be listed.
That number of integers will then follow, each on its own line.
Feel free to copy and paste the data from the textbox to wherever you wish.

Answer
In the box titled "Your answer", please paste the total sum of all the addends.
Be sure not to include a decimal point nor any leading/trailing zeros in the final answer.

Solution
In the box titled "Your solution", please paste whatever program or code you used to obtain your answer.
Whatever you put into this box doesn't get checked by the server, but you will be able to reference again later.

Example

input data:
3
12
345
6789

answer:
7146

In the above example, the first line of the input data indicates there will be 3 integers to add together, which appear on the following lines.
12 + 345 + 6789 = 7146

You need to login to get test data and submit solution.