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

PROGRAMMING:Minimum value and subscript of one dimensional array

Luz5年前 (2021-05-10)题库622
There are five integers in an array. It is required to find out the first decimal and its subscript, and then exchange it with the first element in the array, that is, the first number.
###Input format:
Enter five integers separated by spaces on one line.
###Output format:
Output the changed one-dimensional array in the first row, each number accounts for 4 column widths, and output "Min = minimum value, Weizhi = subscript" in the second row. The minimum value and subscript are output as is, without column width control.
###Input example:
```in
5 2 6 1 9
```
###Output example:
```out
1 2 6 5 9
min=1,weizhi=3
```






answer:If there is no answer, please comment