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 Safe_Passwords_Generator
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int max = int.Parse(Console.ReadLine());
- int min = 1;
- for (int i = 34; i <= 55; i++)
- {
- for (int k = 63; k <= 96; k++)
- {
- for (int d = 1; d <= a; d++)
- {
- for (int m = 1; m <= b; m++)
- {
- i++;
- k++;
- if (i > 55)
- {
- i = 35;
- }
- if (k > 96)
- {
- k = 64;
- }
- Console.Write($"{(char)i}{(char)k}{d}{m}{(char)k}{(char)i}|");
- min++;
- if (min > max)
- {
- return;
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement