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 Safe_Passwords_Generator
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int allowedPasswordCombination = int.Parse(Console.ReadLine());
- int symbolA = 35;
- int symbolB = 64;
- for (int x = 1; x <= a; x++)
- {
- for (int y = 1; y <= b; y++, symbolA++, symbolB++, allowedPasswordCombination--)
- {
- if (symbolA > 55)
- {
- symbolA = 35;
- }
- if (symbolB > 96)
- {
- symbolB = 64;
- }
- if (allowedPasswordCombination == 0)
- {
- return;
- }
- Console.Write($"{(char)symbolA}{(char)symbolB}{x}{y}{(char)symbolB}{(char)symbolA}|");
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment