#K1946. Light Display Pattern
Light Display Pattern
Light Display Pattern
You are given an integer T representing the number of sections. For each section, you are given an integer N that indicates how many lines the pattern contains. Your task is to generate a light display pattern where for each section, the i-th line contains exactly i asterisks (*
).
For example, if N is 3, then the output should be:
* ** ***
If there are multiple sections, separate the outputs of consecutive sections with a blank line.
All input is read from stdin and the output should be printed to stdout.
inputFormat
The first line of input contains a single integer T (1 ≤ T ≤ 100), the number of sections. Each of the next T lines contains one integer N (1 ≤ N ≤ 100), representing the number of lines in that section.
outputFormat
For each section, output a pattern consisting of N lines where the i-th line contains i asterisks. Separate each section's pattern with a blank line.
## sample1
1
*