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 Blanc
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int maxPasswords = int.Parse(Console.ReadLine());
- int count = 0;
- int combo = a * b;
- for (int i = '#'; i <= '7'; i++)
- {
- for (int j = '@'; j <= '`'; j++)
- {
- for (int k = 1; k <= a; k++)
- {
- for (int l = 1; l <= b; l++)
- {
- Console.Write($"{(char)i}{(char)j}{k}{l}{(char)j}{(char)i}|");
- if (j == '`') j = '?';
- j++;
- if (i == '7') i = '"';
- i++;
- count++;
- if (count == maxPasswords) return;
- if (count == combo) return;
- }
- }
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment