Write a program that, given an integer $d$, prints a square made out of
asterisks.
The square has space separated *
symbols on its edges and is filled with spaces on the
inside.
Input
Input consists of one line containing the integer
$d$, where $1 \leq d \leq 100$.
Output
Output consists of the $d$ lines needed to form the square.
Your output must be exactly correct, with no additional
whitespace. In particular, there should be no spaces at the end
of each line.
| Sample Input 1 |
Sample Output 1 |
5
|
* * * * *
* *
* *
* *
* * * * *
|
| Sample Input 2 |
Sample Output 2 |
1
|
*
|
| Sample Input 3 |
Sample Output 3 |
2
|
* *
* *
|
| Sample Input 4 |
Sample Output 4 |
8
|
* * * * * * * *
* *
* *
* *
* *
* *
* *
* * * * * * * *
|
| Sample Input 5 |
Sample Output 5 |
16
|
* * * * * * * * * * * * * * * *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* * * * * * * * * * * * * * * *
|