square * hollow


Submit solution

Points: 10 (partial)
Time limit: 1.0s
Memory limit: 256M

Authors:
Problem type

題目說明

請輸入一整數後,輸出相對應編長的*(空心的)

輸入值均>0

輸入

整數

輸出

相對應邊長的正方形*(空心)

sample input1

3

sample output1

***
* *
***

sample input2

5

sample output2

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

Comments

There are no comments at the moment.