Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace SafePasswordsGenerator
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int passCount = int.Parse(Console.ReadLine());
- int charA = 35;
- int charB = 64;
- for (int j = 1; j <= a; j++)
- {
- for (int x = 1; x <= b; x++)
- {
- if (charA == 56)
- {
- charA = 35;
- }
- if (charB == 97)
- {
- charB = 64;
- }
- Console.Write($"{(char)charA}{(char)charB}{j}{x}{(char)charB}{(char)charA}|");
- passCount--;
- charA++;
- charB++;
- if (passCount == 0)
- {
- break;
- }
- }
- if (passCount == 0)
- {
- break;
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment