PROGRAMMING:Find the maximum and submaximal of a group of numbers
Program to find out the maximum value and sub maximum value of one-dimensional array containing 10 elements.
###Input format:
Enter 10 integers separated by spaces in a row, and only one space can be used between the data.
###Output format:
In one row, output the result according to the format of "max = maximum value, Cmax = next maximum value". The maximum value and second maximum value are output as is without column width control.
###Input example:
```in
5 6 2 1 4 3 10 0 2 7
```
###Output example:
```out
max=10,cmax=7
```
answer:If there is no answer, please comment
###Input format:
Enter 10 integers separated by spaces in a row, and only one space can be used between the data.
###Output format:
In one row, output the result according to the format of "max = maximum value, Cmax = next maximum value". The maximum value and second maximum value are output as is without column width control.
###Input example:
```in
5 6 2 1 4 3 10 0 2 7
```
###Output example:
```out
max=10,cmax=7
```
answer:If there is no answer, please comment