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.
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
70 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.