Question: Initialize an array of 5000 integers with random values. Print this array using while loop. Sort this array in descending order using a do-while loop(s).
Initialize an array of 5000 integers with random values. Print this array using while loop. Sort this array in descending order using a do-while loop(s). Then print this sorted array in reverse order using while loop, also find sum and average of reversed array.
(write in C++ program)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
