Question: write a c++ program Write a C++ code that randomly places the following five values {1,10,100,1000,10000} in an array of size 5. All five values
Write a C++ code that randomly places the following five values {1,10,100,1000,10000} in an array of size 5. All five values must be placed in the array without any duplication. For example, at the end of your code, the array may look like below: This is just an example. A solution that only fills the array as the example above will not receive any marks. The array should be filled with these five values randomly and differently each run. You may declare as many variables as needed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
