Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Wedding_nested_more_
- {
- class Program
- {
- static void Main(string[] args)
- {
- int mens = int.Parse(Console.ReadLine());
- int women = int.Parse(Console.ReadLine());
- int totalTables = int.Parse(Console.ReadLine());
- int couter = 1;
- do
- {
- for (int i = 1; i <= mens; i++)
- {
- couter++;
- for (int j = 1; j <= women; j++)
- {
- Console.Write($"({i} <-> {j}) ");
- couter++;
- }
- }
- } while (totalTables >= couter);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement