Draw a triangle of asterisks for each given number N. Every line of the drawing is exactly 2N + 1 characters wide.
For i from 1 to N, the i-th band is a line with i asterisks, then 2N + 1 − 2i spaces, then i more asterisks. The solid line is 2N + 1 asterisks.
For N = 3 the drawing is
* *
** **
*** ***
*******
and for N = 2 it is
*****
** **
* *
Several lines, each with one integer N (1 ≤ N ≤ 99), until end of file. There are at most 30 lines.
Print the drawing for each N. Print one blank line between two consecutive drawings, and no blank line after the last one. Lines have no trailing spaces.
範例輸入 1
3 2
範例輸出 1
* * ** ** *** *** ******* ***** ** ** * *
Pro 專屬功能: 查看這題在歷屆 CPE 出現過幾次 — 升級以解鎖.