We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Strings
- Designer Door Mat
- Discussions
Designer Door Mat
Designer Door Mat
Sort by
recency
|
1815 Discussions
|
Please Login in order to post a comment
n, m = map(int, input().split())
for i in range(1, n, 2): print((".|." * i).center(m, "-"))
print("WELCOME".center(m, "-"))
for i in range(n-2, 0, -2): print((".|." * i).center(m, "-"))