simonakancheva

Untitled

Apr 21st, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.94 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 o = int.Parse(Console.ReadLine());
  11.             for (int i = 1; i < n; i++)
  12.             {
  13.                 for (int j = 1; j < n; j++)
  14.                 {
  15.                     for (char k = 'a'; k < 'a' + o; k++)
  16.                     {
  17.                         for (char l = 'a'; l < 'a' + o; l++)
  18.                         {
  19.                             for (int m = 1; m <= n; m++)
  20.                             {
  21.                                 if ((m > i) && (m > j))
  22.                                 {
  23.                                     Console.Write($"{i}{j}{(char)k}{(char)l}{m} ");
  24.                                 }
  25.  
  26.                             }
  27.                         }
  28.                     }
  29.                 }
  30.             }
  31.  
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment