#K12141. Taco Pattern Generation
Taco Pattern Generation
Taco Pattern Generation
This problem requires you to generate a pattern of stars followed by spaces for a given positive integer N. The output consists of N lines. In the i-th line, you should print i asterisks ('*') followed by N-i spaces. Formally, the i-th line is represented as:
$$\underbrace{*\, *\, \cdots \,*}_{i}\underbrace{ \ ,\ \cdots , \ }_{N-i}$$
Make sure that the trailing spaces are preserved in each line.
inputFormat
The input is provided via standard input and consists of a single integer N (1 ≤ N ≤ 1000) representing the number of lines in the pattern.
outputFormat
The output should be printed to standard output. It must consist of N lines where the i-th line contains i stars ('*') followed by N-i spaces. Note that the trailing spaces in each line should be preserved.
## sample1
*