Hollow Rectangle - 2
Write a program to print a rectangle pattern of
The first line of input is an integer
In the given example,
3 rows and 10 columns.Therefore, the output should be
M = int(input())
N = int(input())
print("+"+N*"-"+"+")
for i in range(M):
print("|"+N*" "+"|")
print("+"+N*"-"+"+")
Comments
Leave a comment