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

PROGRAMMING:Output the maximum value and the subscript of the array

Luz5年前 (2021-05-10)题库395
Input 6 integer data (6 numbers can not be the same; Both positive and negative), separated by spaces, and put into the array (such as: int array [6];), Output the maximum value and its array subscript (subscript starts from 0), separated by English comma (,).
###Input format:
Input 6 integer data (6 numbers can not be the same; Both positive and negative, separated by spaces.
###Output format:
Output the maximum value and its array subscript, separated by English comma (,).
###Input example:
```in
1 2 3 -1 6 5
```
###Output example:
```out
6,4
```







answer:If there is no answer, please comment