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

PROGRAMMING:Output two-dimensional array in the form of matrix

Luz5年前 (2021-05-10)题库446
This problem requires programming, first of all, to assign a value to a two-dimensional array of $$m / times n $, the value of the array element is the sum of its row subscript and column subscript, and then output the two-dimensional array in the form of matrix.
###Input format:
Input gives two positive integers, $$M $$and $$n $$($$1 / Le m, N / Le 6 $$), separated by spaces, in one line.
###Output format:
The two-dimensional array is output in the form of matrix, each number occupies 4 bits.
###Input example:
```in
3 4
```
###Output example:
```out
0 1 2 3
1 2 3 4
2 3 4 5
```







answer:If there is no answer, please comment