Description
Write a C program that defines two integer arrays with the same size 6, and inputs all the elements (values) through the keyboard. The program defines a third integer array whose elements are computed by adding the corresponding elements of the first two arrays. The program prints the elements whose subscript is odd (i.e., 1, 3, 5) and the sum of these elements.
Input
6 integers of the first array
6 integers of the second array
Output
Odd elements of the third array computed by adding the first two arrays and the sum