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

PROGRAMMING:Maximum and minimum in a batch

Luz5年前 (2021-05-10)题库553
From the keyboard input a number of students' scores, statistics and output the highest and lowest scores, when the input negative number, the cycle ends..
###Input format:
In a row, enter several integers separated by spaces (no more than 15), and finally enter a negative number to end the input. Only one space can be used between the data.
###Output format:
In one line, output the result according to the format of "max = the highest score, min = the lowest score", the highest score and the lowest score are output as is, without column width control.
###Input example:
```in
58 78 95 65 86 -1
```
###Output example:
```out
max=95,min=58
```






answer:If there is no answer, please comment