You are viewing a single comment's thread. Return to all comments →
N , M = input().split() N = int(N) M = int(M) if(N%2 != 0 and M == 3*N): for i in range (1,N,2): x=".|."*(i) print (x.center(M,'-'))
print('WELCOME'.center(M,'-')) for i in range(N-2,0,-2): x ='.|.'*i print (x.center(M,'-'))
else: None
Seems like cookies are disabled on this browser, please enable them to open this website
Designer Door Mat
You are viewing a single comment's thread. Return to all comments →
N , M = input().split() N = int(N) M = int(M) if(N%2 != 0 and M == 3*N): for i in range (1,N,2): x=".|."*(i) print (x.center(M,'-'))
else: None