#C9676. Draw a Rectangular Frame
Draw a Rectangular Frame
Draw a Rectangular Frame
You are given two positive integers \(H\) and \(W\) representing the height and width (in centimeters) of a rectangular frame. Your task is to draw the frame using the '#' character such that the border is made of '#' and the inside is filled with spaces. For example, when \(H=4\) and \(W=6\), the frame should appear as:
###### # # # # ######
The input terminates with a line containing "0 0" which should not be processed.
inputFormat
The input consists of multiple test cases. Each test case is given on a single line containing two integers \(H\) and \(W\) separated by a space. The sequence of test cases is terminated by a line containing "0 0".
outputFormat
For each test case, output the frame drawn with '#' characters. Each row of the frame must be printed on a new line. Separate outputs for consecutive test cases by an empty line.
## sample4 6
0 0
######
######
</p>