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

PROGRAMMING:Find the maximum number of elements in the array and point out their positions

Luz5年前 (2021-05-10)题库432
Find the element with the largest value in the array and indicate which element it is.
###Input format:
Assign values to 10 integer array elements from the keyboard, separated by spaces.
###Output format:
The m-th number is the largest, and the maximum number is: X.
###Input example:
Here is a set of inputs. For example:
```in
-123 5 78 24 69 6 8 687 0 -900
```
###Output example:
The corresponding output is given here. For example:
```out
The number of the eighth position is the largest, and the maximum number is 687
```







answer:If there is no answer, please comment