Home > Back-end >  8-6 real order subject to code program, input n real number, use the pointer reference way of them a
8-6 real order subject to code program, input n real number, use the pointer reference way of them a

Time:09-23

8-6 real number sequence (20 points)
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 explain

CodePudding 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 understand

CodePudding user response:

In addition to the input and output statements difference, update bubble sort:

CodePudding user response:

references a wise man should know already take good karma, 4/f, response:
your cashout
Because double precision problem should not be directly comparing more than less than do
Common form is a - b & lt; Said a required precision & lt; B such

CodePudding user response:

And do not change, I am not a novice, don't need reference, say you own, not because is my pleasure to quote, find reference honored people to think you,

CodePudding user response:

refer to the eighth floor wise men know already should good karma response:
or thoughts do not change, I am not a novice, don't need reference, say you own, not because is my pleasure to quote for reference honored people to think you,
what do you think I not care

CodePudding user response:

To have a complete code let me consult

CodePudding user response:

2 digits precision completely satisfy,
  • Related