knikolov98

Untitled

Oct 15th, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.03 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Password_Generator
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int n = int.Parse(Console.ReadLine());
  10.             int l = int.Parse(Console.ReadLine());
  11.             char Letter = '0';
  12.             char Letter1 = '0';
  13.  
  14.             for (int i = 1; i < n; i++)
  15.             {
  16.                 for (int j = 1; j < n; j++)
  17.                 {
  18.                     for (int k = 97; k < l+97; k++)
  19.                     {
  20.  
  21.                         for (int m = 97; m < l+97; m++)
  22.                         {
  23.  
  24.                             for (int q = i + 1; q <= n; q++)
  25.                             {
  26.                                 Letter = (char)k;
  27.                                 Letter1 = (char)m;
  28.  
  29.                                 if(q > i && q > j)
  30.                                 Console.Write($"{i}{j}{Letter}{Letter1}{q} ");
  31.                             }
  32.                         }
  33.  
  34.                     }
  35.                 }
  36.             }
  37.         }
  38.     }
  39. }
Add Comment
Please, Sign In to add comment