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

PROGRAMMING:C programming experiment 5-2 scheduling problem

Luz5年前 (2021-05-10)题库375
Input the score of a course of a class from the keyboard (the maximum number of students in each class is not more than 40). When the input value is negative, it means the end of the input. Try programming to sort the score from high to low. The sorting function is realized by function programming.
###Input format:
Space separated, not more than 40 integer values, ending with a negative number
###Output format:
The values sorted from large to small are separated by commas. The last number is not followed by commas and does not contain the last negative number entered
###Input example:
Here is a set of inputs. For example:
```in
64 85 73 99 92 -1
```
###Output example:
The corresponding output is given here. For example:
```out
99,92,85,73,64
```







answer:If there is no answer, please comment