N = 4 for i in range(N): for j in range(1, i): if i * j % 2 == 0: print(i, end = "#") continue else: print("0")
2#3#0
1#2#0
1#0#
2#3#