Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input('n: '))
- for i in range(n):
- for j in range(n):
- if i == j and i <= n//2 or i+j >= n-1 and i <= n//2 or j >= n//2 and i >= n//2 :
- print("X", end=" ")
- else:
- print("O", end=" ")
- print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement