ProgramID- 9254
SkillRack
N Pattern

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

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

Example Input/Output 1:
Input:
5 *

Output:
*---*
**--*
*-*-*
*--**
*---*

Example Input/Output 2:
Input:
7 @

Output:
@-----@
@@----@
@-@---@
@--@--@
@---@-@
@----@@
@-----@


Max Execution Time Limit: 1000 millisecs