Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Password_Generator
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int l = int.Parse(Console.ReadLine());
- char Letter = '0';
- char Letter1 = '0';
- for (int i = 1; i < n; i++)
- {
- for (int j = 1; j < n; j++)
- {
- for (int k = 97; k < l+97; k++)
- {
- for (int m = 97; m < l+97; m++)
- {
- for (int q = i + 1; q <= n; q++)
- {
- Letter = (char)k;
- Letter1 = (char)m;
- if(q > i && q > j)
- Console.Write($"{i}{j}{Letter}{Letter1}{q} ");
- }
- }
- }
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment