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

PROGRAMMING:Output the maximum value of each column of the two-dimensional array

Luz5年前 (2021-05-10)题库550
This problem requires programming, output a given M × The maximum value of each column element of N matrix.
###Input format:
Enter the first line to give two positive integers m and n (1 ≤ m, n ≤ 10). Then m lines, each line gives n integers separated by spaces.
###Output format:
Each row outputs the maximum value of the corresponding matrix column element.
###Input example:
```in
3 4
3 1 5 2
1 -4 6 7
1 0 2 3
```
###Output example:
```out
three
one
six
seven
```







answer:If there is no answer, please comment