#P5721. Two-Digit Right Triangle

    ID: 18949 Type: Default 1000ms 256MiB

Two-Digit Right Triangle

Two-Digit Right Triangle

Given an integer nn, print a right-angled triangle where the two legs have length nn. The triangle is constructed with consecutive numbers, where each number is represented as a two-digit number (prepend leading zeros if necessary).

For example, if n=3n=3, the triangle should be:
$$\begin{aligned} \text{Row 1}: &\ 01\ \text{Row 2}: &\ 02\ 03\ \text{Row 3}: &\ 04\ 05\ 06 \end{aligned}$$

inputFormat

An integer nn (1n991 \leq n \leq 99) representing the number of rows of the triangle.

outputFormat

The output consists of nn lines. The ii-th line contains ii two-digit numbers (with leading zeros if needed) separated by a single space.

sample

1
01