#P5721. Two-Digit Right Triangle
Two-Digit Right Triangle
Two-Digit Right Triangle
Given an integer , print a right-angled triangle where the two legs have length . 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 , 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 () representing the number of rows of the triangle.
outputFormat
The output consists of lines. The -th line contains two-digit numbers (with leading zeros if needed) separated by a single space.
sample
1
01