Question: Q 5 : Subtract 1 from the first item in the Q 4 array, 2 from the 2 nd item, 3 from the 3 rd

Q5: Subtract 1 from the first item in the Q4 array, 2 from the 2nd item, 3 from the 3rd item...n from the nth item and call the new array Q5. You should not do this using any type of loop as that wouldn't be efficient. Hint: Think about creating a second array that could be used in combination with the first array to complete the task.

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 Databases Questions!