PROGRAMMING:Ranking by bubble method
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 that the given n integers be sorted from small to large and then output( Sort by bubble method)
###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 small to large 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
1 2 3 5 6
```
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 that the given n integers be sorted from small to large and then output( Sort by bubble method)
###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 small to large 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
1 2 3 5 6
```
answer:If there is no answer, please comment