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 Battles
- {
- class Program
- {
- static void Main()
- {
- var firstPokemon = byte.Parse(Console.ReadLine());
- var secondPokemon = byte.Parse(Console.ReadLine());
- var max = byte.Parse(Console.ReadLine());
- byte count = 0;
- for (int i = 1; i <= firstPokemon; i++)
- {
- for (int j = 1; j <= secondPokemon; j++)
- {
- if (count < max)
- {
- ++count;
- Console.Write("({0} <-> {1}) ", i, j);
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement