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 Exam_Challenge_the_Wedding
- {
- class Program
- {
- static void Main(string[] args)
- {
- int countMen = int.Parse(Console.ReadLine());
- int countWomen = int.Parse(Console.ReadLine());
- int countTables = int.Parse(Console.ReadLine());
- for (int i = 0; i < countTables; i++)
- {
- for (int j = 0; j < countTables; j++)
- {
- for (int k = 0; k < countTables; k++)
- {
- Console.WriteLine($"({j} <-> {k})");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment