Correct C Program Solution Provided - with Sample Output Run

Question

Construct a C program that creates an array of size 12 and then display separately the sum of even-indexed cells and odd-indexed cells as well as their average as shown below: Sample Run:

Enter 12 elements: 111111111111
Sum of even-indexed cells: 6
Sum of odd-indexed cells: 6
Average: 6.0

Details
Purchase An Answer Below

Have a similar question?