eolymp
bolt
Try our new interface for solving problems
Problems

Diamond

Diamond

Draw a diamond shape with character '\textbf{*}'. \InputFile There are several lines in the input, each line is a integer \textbf{N}\textit{ }(\textbf{N} ≤ \textbf{100}), \textbf{N} is zero means the end of input. \OutputFile For each line of input, draw a diamond whose width is \textbf{N} like sample. Notice there is no unnecessary spaces after '\textbf{*}' in the same line. Output a blank line after each case.
Time limit 1 second
Memory limit 64 MiB
Input example #1
3
2
0
Output example #1
  *
 ***
*****
 ***
  *

 *
***
 *

Example description: The example for "clarity" is printed gaps are shown by dots.