Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var pokemon = int.Parse(Console.ReadLine());
- var pokemon2 = int.Parse(Console.ReadLine());
- var max = int.Parse(Console.ReadLine());
- var count=0;
- for (int a = 1; a <= pokemon2; a++)
- {
- for (int b = 1; b <= pokemon2; b++)
- {
- count++;
- if(count>=max)
- {
- Console.WriteLine();
- return;
- }
- Console.Write("({0} <-> {1}) ",a,b);
- }
- }
- Console.WriteLine();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement