Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var men, women, tables int
- fmt.Scanln(&men)
- fmt.Scanln(&women)
- fmt.Scanln(&tables)
- for i := 1; i <= men; i++ {
- for k := 1; k <= women && tables != 0; k++ {
- fmt.Printf("(%d <-> %d) ", i, k)
- tables--
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement