joj2318
来源:互联网 发布:淘宝钻展如何使用 编辑:程序博客网 时间:2024/05/22 00:36
2318: Diamond
Draw a diamond shape with character '*'.
Input
There are several lines in the input, each line is a integer N(N<100), N is zero means the end of input.
Output
For each line of input, draw a diamond whose width is N like sample. Notice there is no unnecessary spaces after '*' in the same line.
Output a blank line after each case.
Sample Input
30
Sample Output
* ******** *** *
Problem Source: skywind
This problem is used for contest: 51 153
Submit / Problem List / Status / Discuss