Question: Write a C++ program to store N random numbers in an array A, of 50 cells. The random numbers should be generated to be in

Write a C++ program to store N random numbers in an array A, of 50 cells. The random numbers should be generated to be in the range 10-50 The program should output the following: 1) Copy all even numbers in A to a new array Even (then output the content of even) 2) Replace all odd numbers by the last value in the array A.

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!