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 challangeTheWedding
- {
- class Program
- {
- static void Main(string[] args)
- {
- int men = int.Parse(Console.ReadLine());
- int women = int.Parse(Console.ReadLine());
- int tables = int.Parse(Console.ReadLine());
- for(int a = 1; a <= men; a++)
- {
- for (int b = 1; b <= women; b++)
- {
- Console.Write($"({a} <-> { b}) ");
- if (a * b == tables)
- {
- break;
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement