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 StupidPasswordGenerator
- {
- class Program
- {
- static void Main(string[] args)
- {
- var start = int.Parse(Console.ReadLine());
- var end = int.Parse(Console.ReadLine());
- var maxCombination = int.Parse(Console.ReadLine());
- var counter = 0;
- for (int i = 1; i <= start; i++)
- {
- for (int j = 1; j <= end; j++)
- {
- counter++;
- if (counter > maxCombination)
- {
- break;
- }
- Console.Write("<{0}-{1}><{0}-{1}>",i, j);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement