Question: 2. (30 pts) Write a sorting program using an array. First read n integers and store them in an array. Then use any sorting algorithm

2. (30 pts) Write a sorting program using an array. First read n integers and store them in an array. Then use any sorting algorithm (you can choose any one) to sort these numbers in ascending order. Turn in your code and input/result together. For example, if your input is -9 20 100 10 9 5 1000 then your output should be 100 -9 9 1 5 1020 1000 (Hint) You can find a simple sorting program on p. 332
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
