PROGRAMMING:Sorting by selection
Experiment 5: array
The purpose of this study was to investigate the effects of different factors on the quality of life
1. Master the definition, assignment, input and output methods of one-dimensional array and two-dimensional array.
2. Master the use of character array and string function.
Title Description
This problem requires the given n integers from large to small sort output.
###Input format:
The first line of input gives a positive integer n of no more than 10. The second line gives n integers separated by spaces.
###Output format:
Output in a row from large to small orderly sequence, there is a space between adjacent numbers, there must be no extra space at the end of the line.
###Input example:
Here is a set of inputs. For example:
```in
five
3 5 6 1 2
```
###Output example:
The corresponding output is given here. For example:
```out
6 5 3 2 1
```
answer:If there is no answer, please comment
The purpose of this study was to investigate the effects of different factors on the quality of life
1. Master the definition, assignment, input and output methods of one-dimensional array and two-dimensional array.
2. Master the use of character array and string function.
Title Description
This problem requires the given n integers from large to small sort output.
###Input format:
The first line of input gives a positive integer n of no more than 10. The second line gives n integers separated by spaces.
###Output format:
Output in a row from large to small orderly sequence, there is a space between adjacent numbers, there must be no extra space at the end of the line.
###Input example:
Here is a set of inputs. For example:
```in
five
3 5 6 1 2
```
###Output example:
The corresponding output is given here. For example:
```out
6 5 3 2 1
```
answer:If there is no answer, please comment