15 lines
304 B
Python
15 lines
304 B
Python
N = int(input())
|
|
for i in range(N):
|
|
for j in range(N):
|
|
if j % 2 == 0:
|
|
print("*", end='')
|
|
else:
|
|
print(" ", end='')
|
|
print()
|
|
for j in range(N):
|
|
if j % 2 == 1:
|
|
print("*", end='')
|
|
else:
|
|
print(" ", end='')
|
|
print()
|