1763: 【CSP嵌套循环】字符图形7-星号菱形█

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:16 Solved:6

Description

输入一个整数 lns="http://www.w3.org/1998/Math/MathML">n ,请打印出 lns="http://www.w3.org/1998/Math/MathML">n2+1 行的字符图形。

Input

一个整数(lns="http://www.w3.org/1998/Math/MathML">0<n<10)。

Output

一个字符图形,如输入 lns="http://www.w3.org/1998/Math/MathML">2 ,则产生 lns="http://www.w3.org/1998/Math/MathML">5 行的菱形。

Sample Input Copy

2

Sample Output Copy

  *
 ***
*****
 ***
  *