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 FirstDemoLovech
- {
- public class Program
- {
- public static void Main()
- {
- int men = int.Parse(Console.ReadLine());
- int women = int.Parse(Console.ReadLine());
- int maxTables = int.Parse(Console.ReadLine());
- int currentTable = 0;
- for (int m = 1; m <= men; m++)
- {
- for (int w = 1; w <= women; w++)
- {
- Console.Write($"({m} <-> {w}) ");
- currentTable++;
- if (currentTable == maxTables) return;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement