Write a program to print a rectangle pattern of M rows and N columns using the characters as shown below.
+----------+
| |
M = int(input()) N = int(input()) print("+"+N*"-"+"+") for _ in range(M): print("|"+N*" "+"|") print("+"+N*"-"+"+")
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments