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

PROGRAMMING:Find the average number of elements in each column of matrix

Luz5年前 (2021-05-10)题库398
This problem requires the preparation of procedures to find a given M × The average number of elements in each column 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 average number of elements in the corresponding matrix column, with 1 decimal place reserved.
###Input example:
For example:
```in
3 4
3 1 5 2
1 -4 6 7
1 0 2 3
```
###Output example:
```out
one point seven
-1.0
four point three
four
```






answer:If there is no answer, please comment