Question: C# LAB: This problem is about using two static methods of class Array: Sort and Reverse. The Sort method sorts elements in ascending order, while

C# LAB:

This problem is about using two static methods of class Array: Sort and Reverse. The Sort method sorts elements in ascending order, while the Reverse method reverses the order of the elements. Write a program that generates 10 random integers between 0 and 99 (include 0 and 99). Store the 10 integers in an array. Display the elements. Sort the elements in descending order. Display the elements. The following is an example.

Initial array values:

23 80 14 13 18 41 63 81 85 91

Array values sorted:

91 85 81 80 63 41 23 18 14 13

Press any key to continue . . .

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!