#C9395. Mirrored Right-Angled Triangle

    ID: 53483 Type: Default 1000ms 256MiB

Mirrored Right-Angled Triangle

Mirrored Right-Angled Triangle

Write a program that reads a single integer (N) from standard input and prints a mirrored right-angled triangle of height (N). For each row (i) (where (1 \leq i \leq N)), the program should print a line that consists of (N-i) leading spaces followed by the digit (i) repeated (i) times.

For example, if (N = 4), the output should be:

   1
  22
 333
4444

The formula for the (i)th line can be represented in LaTeX as: [ L_i = \text{`` } \underbrace{\quad \cdots \quad}_{N-i \text{ spaces}} \quad i,i,\cdots,i \text{ (repeated } i \text{ times)}\text{''} ]

inputFormat

The input consists of a single integer (N) ((1 \leq N \leq 100)) provided via standard input, which represents the height of the triangle.

outputFormat

Print the mirrored right-angled triangle as described, with exactly (N) lines. Each line must contain (N-i) leading spaces followed by the digit (i) repeated (i) times, and then a newline character.## sample

1
1

</p>