Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- floors = int(input())
- rooms = int(input())
- for i in range(floors, 0, -1):
- for j in range(rooms):
- if i == floors:
- print(f" L{i}{j}", end="")
- elif i % 2 == 0:
- print(f" O{i}{j}", end="")
- else:
- print(f" A{i}{j}", end="")
- print()
Advertisement
Add Comment
Please, Sign In to add comment