LearnPy Hub
← Loops problems
Medium

Hollow Square

Read n (≥ 2) and print an n × n square of * with only the border drawn (spaces inside).

Input

One integer n ≥ 2.

Output

n lines.

Sample 1

Input
4
Output
****
*  *
*  *
****

Sample 2

Input
2
Output
**
**
solution.py
Output appears here
Hollow Square · Python practice problem · LearnPy Hub