Question: Consider the following declaration and write a valid C + + code then copy and paste your program in the space below or attach your

Consider the following declaration and write a valid C++ code then copy and paste your program in the space below or attach your code.
int list[]={3,8,10,13,6,11}
a. Write a C++ code that will output the value stored in each component of list.
b. Write a C++ code that will set the values of the first 5 components of list as follows:
The value of the ith component minus 3 times the value of the (i+1)th component.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!