Advertisement
Guest User

Untitled

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