Using your knowledge of C++ and arrays create three arrays of size 6, one for even numbers, one for odd numbers, and one that will contain the sum of the even and odd array locations. The arrays must be filled programmatically (i.e. no initializer lists). Then provide the total of all element of the “Sum” array. The final output should look as follows:
Evens Odds Sum
0 1 1
2 3 5
4 5 9
6 7 13
8 9 17
10 11 21
The total is: 66
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here