Answer to Question #245113 in Python for Raju

Question #245113

Hollow Rectangle - 2

Write a program to print a rectangle pattern of M rows and N columns using the characters as shown below.


1
Expert's answer
2021-10-02T01:37:16-0400
M = int(input())
N = int(input())
print('+'+'-'*N+'+')
for i in range(M):
    print('| |')
print('+'+'-'*N+'+') 

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS