Advertisement
MiroslavKisov

Stupid_Password_Generator

Jul 25th, 2017
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.96 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Stupid_Password_Generator
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int n = int.Parse(Console.ReadLine());
  14.             int l = int.Parse(Console.ReadLine());
  15.             char[] chars = "abcdefghijklmnopqrstuvwxyz".ToCharArray();
  16.             for (int i=1;i<n;i++)
  17.             {
  18.                 for(int j=1;j<n;j++)
  19.                 {
  20.                     for(int k=0;k<l;k++)
  21.                     {
  22.                         for(int m=0;m<l;m++)
  23.                         {
  24.                             for(int p =(Math.Max(i,j)+1);p<(n+1);p++)
  25.                             {
  26.                                 Console.Write($"{i}{j}{chars[k]}{chars[m]}{p}"+" ");
  27.                             }
  28.                         }
  29.                     }
  30.                 }
  31.             }
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement