Read an integer N. This number indicates how many values each array will have.
Then, read N numbers (one per line) and store them in the first array. After that, read another N numbers (one per line) and store them in the second array.
Finally, create a third array where each position is the sum of the corresponding positions from the two arrays. Display the third array, one per line.
Hints:
for loop to fill the first array and another for to fill the second.for loop to calculate the position-by-position sum and store it in the third array.for loop to display the third array.An integer N, followed by the N elements of the first array (one per line), followed by the N elements of the second array (one per line).
Print the N elements of the resulting array, one per line.
Input:
3
1
2
3
4
5
6
Output:
5
7
9