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 Stupid_Password_Generator
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int l = int.Parse(Console.ReadLine());
- char[] chars = "abcdefghijklmnopqrstuvwxyz".ToCharArray();
- for (int i=1;i<n;i++)
- {
- for(int j=1;j<n;j++)
- {
- for(int k=0;k<l;k++)
- {
- for(int m=0;m<l;m++)
- {
- for(int p =(Math.Max(i,j)+1);p<(n+1);p++)
- {
- Console.Write($"{i}{j}{chars[k]}{chars[m]}{p}"+" ");
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement