Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- men = int(input())
- women = int(input())
- tables = int(input())
- for i in range(1, men + 1):
- for k in range(1, women + 1):
- if tables == 0:
- break
- print(f'({i} <-> {k})', end=' ')
- tables -= 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement