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
Get step-by-step solutions from verified subject matter experts
