Hollow rectangle
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Create a program that outputs a hollow rectangle with dimensions n x m
, using asterisks for the edges.
Input Data
You will receive two integers n
and m
(1 ≤ n, m ≤ 50
), which specify the dimensions of the rectangle.
Output Data
Display a hollow rectangle with dimensions n x m
, where the perimeter is formed by asterisks.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 1K
Acceptance rate 64%