Add 3 numbers
Statement
Goal
Hi martixana, every time your program is run it's given 3 numbers.So you have to right a code for that program that reads the numbers, stores them in variables, adds them (maybe in separate variable) and outputs their sum to the console.
For example:
The 3 input numbers could be:
1
2
3
They could be read and stored into variables using "parseInt(readline())"
After you have the variables you have to add them and output the result using "console.log(...)"
In this case your answer should be 6 (written to the console)
Have fun :)
Input
3 numbers in separate lines
Output
1 number representing the sum of the 3 input numbers
Constraints
The sum doesn't overflow
Example
Input
1 2 3
Output
6
Tags
Difficulty
Easy
Test cases
Test 1 Test
Input
1
2
3
Output
6
Validator 1 Validator
Input
3
2
1
Output
6
Test 2 Test
Input
10
11
12
Output
33
Validator 2 Validator
Input
12
11
10
Output
33
Test 3 Test
Input
4
4
4
Output
12
Validator 3 Validator
Input
4
4
4
Output
12
Test 4 Test
Input
100
101
102
Output
303
Validator 4 Validator
Input
100
102
104
Output
306
Solution language
Solution
Stub generator input