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

PROGRAMMING:Combine to find the maximum and minimum

Luz5年前 (2021-05-10)题库389
Input 4 integers within 0 ~ 9 from the keyboard, and calculate the maximum and minimum values of the integers composed of these 4 integers. If the input is not an integer, output "number input error". If the input is not in the range of 0 ~ 9, output "numerical range error"
###Input format:
From the keyboard input 0 ~ 9 within the 4 integers, separated by spaces
###Output format:
For each set of inputs, output two integers, maximum and minimum, on a single line.
###Input example:
```in
1 5 9 3
```
###Output example:
```out
9531 1359
```
###Input example:
```in
1 5 a 9
```
###Output example:
```out
number input error
```
###Input example:
```in
1 5 10 9
```
###Output example:
```out
Numerical range error
```






answer:If there is no answer, please comment