Designer Door Mat

  • + 0 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