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 _09.Password_Generator
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int l = int.Parse(Console.ReadLine());
- int letter = 97 + l;
- for (int i = 1; i < n; i++)
- {
- for (int j = 1; j < n; j++)
- {
- for (int m = 97; m < letter; m++)
- {
- for (int o = 97; o < letter; o++)
- {
- for (int p = j + 1; p <= n; p++)
- {
- if (i > 1 && p < n)
- {
- p = i + 1;
- }
- else if (j > 1 && p < n)
- {
- p = j + 1;
- }
- Console.Write("{0}{1}{2}{3}{4} ", i, j, (char)m, (char)o, p);
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement