#K74427. Flower Bed Triangle
Flower Bed Triangle
Flower Bed Triangle
Given an integer \(T\) indicating the number of test cases, and for each test case, an integer \(M\) representing the number of levels, generate a triangle pattern of consecutive numbers. The triangle for each test case starts with the number 1 and increases sequentially. In the \(i\)-th row of a test case, output exactly \(i\) numbers separated by a single space. For multiple test cases, separate the output of each triangle by a blank line.
Example:
Input: 1 3</p>Output: 1 2 3 4 5 6
inputFormat
The first line contains a single integer (T), the number of test cases. Each of the following (T) lines contains an integer (M) denoting the number of levels in the triangle.
outputFormat
For each test case, print the triangle pattern with numbers in increasing order. Each row (i) should have exactly (i) numbers separated by a space. For multiple test cases, print an empty line between consecutive triangle outputs.## sample
1
1
1