saimun1

Isnt finished !! Генератор за тъпи пароли

Jul 21st, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.06 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 test
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.  
  14.             int n = int.Parse(Console.ReadLine());
  15.             int I = int.Parse(Console.ReadLine());
  16.  
  17.             for (int s1 = 1; s1 < n; s1++)
  18.             {
  19.                 for (int s2= 1; s2 < n; s2++)
  20.                 {
  21.                     for (var s3 = 'a'; s3 < 'a'+I; s3++)
  22.                     {
  23.                         for (var s4 = 'a'; s4  <'a'+ I; s4 ++)
  24.                         {
  25.                             for (int s5 = Math.Max(s1, s2)+1; s5 < n; s5++)
  26.                             {
  27.                                 Console.Write("{0}{1}{2}{3}{4} ",
  28.                                     s1, s2, s3, s4, s5);
  29.  
  30.                             }
  31.                             Console.WriteLine();
  32.                         }
  33.                     }
  34.                 }
  35.             }
  36.  
  37.  
  38.  
  39.  
  40.             Console.ReadLine();
  41.         }
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment