C program to print box

C program to print box

Output:

Enter the size of the box:
5
*****
*      *
*      *
*      *
*****

Implementation: