#C2848. Multiplication Table Generator

    ID: 46209 Type: Default 1000ms 256MiB

Multiplication Table Generator

Multiplication Table Generator

This problem requires you to generate an n x n multiplication table using a given positive integer n. Each element in the table is the product of its row and column indices. Formally, let \(T\) be an n x n table where each element \(T_{i,j}\) is defined as:

[ T_{i,j} = i \times j, \quad \text{for } 1 \le i, j \le n ]

You are expected to read the integer from stdin and output the table to stdout with each row on a separate line and numbers separated by a single space.

inputFormat

The input consists of a single integer n (1 ≤ n ≤ 100) which represents the size of the multiplication table.

outputFormat

Output the multiplication table of size n x n. Each of the n lines should contain n integers separated by a single space.

## sample
3
1 2 3

2 4 6 3 6 9

</p>