N real Numbers subject to code program, input, using pointer reference way of them in order of from big to small,
Input format:
Enter the first line is given a positive integer n (2 n 10 or less or less), enter the second line gives n real Numbers, separated by Spaces,
The output format:
Output from big to small sorted n number 2 decimal places (keep) and one space between each number, no Spaces at the end of the line,
CodePudding user response:
Pray god shows the code and explainCodePudding user response:
Input the sample:Given a set of input here, for example:
5
3.2 5.4 6.12 2.51 4.23
The output sample:
Here is given the corresponding output, for example:
6.12 5.40 4.23 3.20 2.51
CodePudding user response:
CodePudding user response:
Is the c language? Not very understandCodePudding user response:
In addition to the input and output statements difference, update bubble sort:CodePudding user response: