#K47662. Matrix Multiplication Table

    ID: 28249 Type: Default 1000ms 256MiB

Matrix Multiplication Table

Matrix Multiplication Table

Given an integer \(n\), generate a square matrix of size \(n \times n\) where the element at the \(i\)-th row and \(j\)-th column is defined as:

\(A[i][j] = i \times j\)

Note: The indices \(i\) and \(j\) are 1-based. For example, when \(n = 3\), the matrix will be:

1 2 3
2 4 6
3 6 9

Your task is to read the input from standard input and output the matrix in the specified format to standard output.

inputFormat

The input consists of a single integer \(n\) (\(1 \leq n \leq 100\)) which represents the number of rows and columns of the matrix.

outputFormat

Output the generated matrix, where each row is printed on a new line and the elements in a row are separated by a single space.

## sample
2
1 2

2 4

</p>