Question: Using C++ Write program statements that will do the following to array x, shown below a. Display all elements with odd subscripts on one line.
Using C++

Write program statements that will do the following to array x, shown below a. Display all elements with odd subscripts on one line. b. Calculate the sum of the elements with odd subscripts only 16 12 2 2.5 12 14 754.5 The element No. 1 is 12 The element No. 3 is 8 The element No. 5 is 12 The element No. ? is -54.5 The sun of the elements with odd subscript is: -22.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
