Matrix: sum of indexes
Medium
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Let m[i][j] be a two dimensional array of size n * n. Let m[i][j] = i + j. Indexation starts from 1 (m[1][1] is a left upper corner of the matrix). Print the array.
Input
One positive integer n (n < 50).
Output
Print the two dimensional array. Each number must be printed in 2 positions.
Examples
Input #1
Answer #1
Submissions 5K
Acceptance rate 71%