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

PROGRAMMING:Bubble sort function

Luz5年前 (2021-05-10)题库432
Write function to realize bubble method to sort real array from small to large. In the main function, first input an integer n (1 < n < = 100), then input n real numbers into the array, call the function you write to sort and output all the elements of the array.
###Input example:
```in
five
2 3.5 1.0 0.618 1.142
```
###Output example:
```out
0.6180 1.0000 1.1420 2.0000 3.5000
```







answer:If there is no answer, please comment