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 = 1; countTables > 0 && i <= countMen; i++)
- {
- for (int j = 1; countTables > 0 && j <= countWomen; j++, countTables--)
- {
- {
- Console.Write($"({i} <-> {j}) ");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment