Advertisement
Valantina

PasswordGenerator

Jun 9th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.08 KB | None | 0 0
  1. using System;
  2.  
  3. namespace PasswordGenerator
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int start = int.Parse(Console.ReadLine());
  10.             int end = int.Parse(Console.ReadLine());
  11.             int count = 0;
  12.             for (int first = 1; first < start; first++)
  13.             {
  14.                 for (int second = 1; second < start; second++)
  15.                 {
  16.                     for (char third = 'a'; third < end + 97; third++)
  17.                     {
  18.                         for (char forth = 'a'; forth < end + 97; forth++)
  19.                         {
  20.                             for (int fifth = 1; fifth <= start; fifth++)
  21.                             {
  22.                                 if (fifth > first && fifth > second)
  23.                                 {
  24.                                     Console.Write($"{first}{second}{third}{forth}{fifth} ");
  25.                                 }
  26.                             }
  27.                         }
  28.                     }
  29.                 }
  30.             }
  31.         }
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement