Advertisement
alexbancheva

Password Generator

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