#P227. 【例38.1】 画出矩形
【例38.1】 画出矩形
Description
Draw a hollow or solid rectangle based on the given parameters.
Input Format
Input consists of four parameters: the first two are integers representing the height and width of the rectangle (height between 3 and 10 rows, width between 5 and 10 columns); the third parameter is a character used to draw the rectangle; the fourth parameter is either 1 or 0, where 0 represents a hollow rectangle and 1 represents a solid rectangle.
Output Format
Output the drawn rectangle.
Sample
7 7 @ 0@@@@@@@
@ @
@ @
@ @
@ @
@ @
@@@@@@@