grach

2016_March_6 Stupud Password Generator

Nov 14th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.05 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.  
  16.  
  17.             for (int i = 1; i <= n; i++)
  18.             {
  19.                 for (int j = 1; j <= n; j++)
  20.                 {
  21.                     for (int k = 97; k < 97 + l; k++)
  22.                     {
  23.                         for (int o = 97; o < 97 + l; o++)
  24.                         {
  25.                             for (int p = 1; p <= n; p++)
  26.                             {
  27.                                 if (p > i && p > j)
  28.                                 {
  29.                                     Console.Write("{0}{1}{2}{3}{4} ", i, j, (char)k, (char)o, p);
  30.                                 }
  31.                             }
  32.                         }
  33.                     }
  34.                 }
  35.             }
  36.         }
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment