This C++ program defines two arrays called first and second that can each hold 20 integers. It prompts the user to enter the number of elements for the arrays, and then separately inputs values for each array. The program then outputs the sum of each corresponding element from the two arrays.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
73 views
Array Summation
This C++ program defines two arrays called first and second that can each hold 20 integers. It prompts the user to enter the number of elements for the arrays, and then separately inputs values for each array. The program then outputs the sum of each corresponding element from the two arrays.