-->
当前位置:首页 > 题库

PROGRAMMING:bubble sort

Luz5年前 (2021-05-10)题库558
Input a positive integer n (1 < = n < = 10), and then input n integers and store them in the array. Sort these n integers from large to small and output them. There is a space between adjacent numbers, and there must be no extra space at the end of the line.
###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:
```in
four
75 71 77 76
```
###Output example:
```out
77 76 75 71
```







answer:If there is no answer, please comment