Table of contents
Pre-class test 3-character triangle
Pre-class test 3-character triangle
【Problem Description】
We have learned programming, and through the control of the program, we can do some interesting output.
For example, this topic is given a positive integer N, please output a triangle composed of N rows of *.
But - for the beauty of the graphics, we hope that the output is an isosceles triangle!
The specific rules are as follows:
the first line is 1 *
the second line is 3 *
the third line is 5 *
...
and so on, until the Nth line (the beginning of the Nth line has no spaces).
For more information, please refer to the sample.【Input form】
The first line of input data is a positive integer C, indicating that there are a total of C groups of test cases.
The next C line, each set of data occupies one line, is a positive integer N (1<=N<=40), the meaning of N is shown in the title description.【Output form】
For the given N of each set of data, please output N rows of isosceles triangles composed of * as required.
【Sample input】
2 3 5
【Sample output】