In general terms, Ascending means smallest to largest, 0 to 9, and/or A to Z and Descending means largest to smallest, 9 to 0, and/or Z to A. Ascending order means the smallest or first or earliest in the order will appear at the top of the list: For numbers or amounts, the sort is smallest to largest
Output:
Enter Number of Elements
6
Enter 6 Integers
12
32
65
45
98
78
Sorted list in ascending order:
12
32
45
65
78
98
Sorted list in descending oreder:
98
78
65
45
32
12
need an explanation for this answer? contact us directly to get an explanation for this answer