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

PROGRAMMING:bubble sort

Luz5年前 (2021-05-10)题库359
In the main function, first input an integer n (1 < n < = 100), then input n integers into the array, and then use bubble sorting method to sort the n elements in the array from large to small, and finally output all the elements of the array.
###Input example:
```in
ten
1 2 59 8 75 6 12 55 23 10
```
###Output example:
```out
75 59 55 23 12 10 8 6 2 1
```







answer:If there is no answer, please comment