Question: This is another C++ assignment, this time concerning arrays. I posted some new video tutorials that you can use to learn about this topic. I

This is another C++ assignment, this time concerning arrays. I posted some new video tutorials that you can use to learn about this topic. I want you to write a program that will create an array of 20 integers and intialize them with random numbers in range 0-100 (inclusive). Your program should next print the elements of the array in two lines. The first line should include elements first, third, fifth, ..., 19th (all even indexed elements) and the second line should have elements second, fourth, sixth, ...., 20th (all odd indexed elements).

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!