Advertisement
sanyakasarova

05. Password Generator

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