Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 05. Challenge the Wedding
- totalMen = int(input())
- totalWomen = int(input())
- totalTables = int(input())
- counterTables = 0
- areTheTablesOver = False
- man = 1
- while man <= totalMen:
- woman = 1
- while woman <= totalWomen:
- print(f"({man} <-> {woman}) ", end="")
- counterTables += 1
- if counterTables == totalTables:
- areTheTablesOver = True
- break
- woman += 1
- if areTheTablesOver == True:
- break
- man += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement