ProgramID- 9252
SkillRack
Integer Border Pattern

The program must accept an integer N as the input. The program must print the desired pattern as shown in the Example Input/Output section.

Boundary Condition(s):
3 <= N <= 100

Example Input/Output 1:
Input:
5

Output:
1 2 3 4 5
6 * * * 7
8 * * * 9
10 * * * 11
12 13 14 15 16

Example Input/Output 2:
Input:
4

Output:
1 2 3 4
5 * * 6
7 * * 8
9 10 11 12

 


Max Execution Time Limit: 1000 millisecs