Box Pattern

easy
Draw a box with a given width and height and draws an 'X' in its centre.
For eg.
input:
7 
5
output:
<img src="http://pepcoding.com/resources/ojquestionresource/images/box-pattern-1.JPG" alt="box-pattern-1">

Input Format

2 integers

Output Format

A Pattern

Constraints

None

Example

Input
11
7
Output
+---------+
|                 |
|                 |
|        X      |
|                 |
|                 |
+---------+
Previous
Coin Sum Problem
Next
Tetris

Related Questions