Question: Write C++ statements to do the following: a. Create an array named abc to hold 30 integer values. b. Assign value 0 to the first
Write C++ statements to do the following:
a. Create an array named abc to hold 30 integer values.
b. Assign value 0 to the first element in the array abc.
c. Write a loop to assign value 1 to each cell of the array abc which has an od index and value 2 to even index.
d. Write a loop to output the content of the 20th element of the array abc.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
