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

PROGRAMMING:Find the maximum value and the second maximum value

Luz5年前 (2021-05-10)题库408
Write programs, output by the user input n integers (n < = 20) in the maximum and sub maximum
###Input format:
Enter the value of N, and then enter n (n < = 20) integers separated by spaces.
###Output format:
Output the maximum and submaximal values in the form of "max = maximum, Cmax = submaximal"
###Input example:
Here is a set of inputs. For example:
```in
ten
139 320 208 508 351 253 826 781 175 938
```
###Output example:
The corresponding output is given here. For example:
```out
max=938,cmax=826
```







answer:If there is no answer, please comment