Hollow Rectangle - 2
This Program name is Hollow Rectangle - 2. Write a Python program to Hollow Rectangle - 2
The below link contains Hollow Rectangle - 2 question, explanation and test cases
https://drive.google.com/file/d/1nWuk5uhqVJKhOJbg9IaBoW8S8FUrNSbX/view?usp=sharing
We need exact output when the code was run
M = int(input())
N = int(input())
print("+"+N*"-"+"+")
for _ in range(M):
print("|"+N*" "+"|")
print("+"+N*"-"+"+")
Comments
Leave a comment