Question: Q1..) 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
Q1..) 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(). Then print this sorted array in reverse order using while loop, also find sum and average of reversed array.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
