C++ Declare three arrays: A, B and C each size 3 Read these numbers into A using for loop and cin : 1, 2, 3 Read these numbers into B using for loop and cin: -1, -2, -3 C is A + B . this means you need to add each element of the array A to corresponding element of array B and then C is the sum. Print the elements of array C (three elements)
C++ Declare three arrays: A, B and C each size 3 Read these numbers into A using for loop and cin : 1, 2, 3 Read these numbers into B using for loop and cin: -1, -2, -3 C is A + B . this means you need to add each element of the array A to corresponding element of array B and then C is the sum. Print the elements of array C (three elements)
Related questions
Question
C++
Declare three arrays:
A, B and C each size 3
Read these numbers into A using for loop and cin : 1, 2, 3
Read these numbers into B using for loop and cin: -1, -2, -3
C is A + B . this means you need to add each element of the array A to corresponding element of array B and then C is the sum.
Print the elements of array C (three elements)
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps