Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _09._Password_Generator
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int l = int.Parse(Console.ReadLine());
- int x = 96 + l;
- for(int x1=1; x1<n; x1++)
- {
- for (int x2 = 1; x2 < n; x2++)
- {
- for (int x3 = 97; x3 <= x; x3++)
- {
- for (int x4 = 97; x4 <= x; x4++)
- {
- for (int x5 = x1; x5<= n; x5++)
- {
- if (x2 < x5 && x1 < x5)
- {
- Console.Write($"{x1}{x2}{(char)x3}{(char)x4}{x5} ");
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment