Advertisement
Spocoman

05. Challenge the Wedding

Jan 1st, 2022 (edited)
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. men = int(input())
  2. women = int(input())
  3. tables = int(input())
  4.  
  5. for i in range(1, men + 1):
  6.     for k in range(1, women + 1):
  7.         if tables == 0:
  8.             break
  9.         print(f'({i} <-> {k})', end=' ')
  10.         tables -= 1
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement