Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _09._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. for (int j = 1; j <= n; j++)
  15. {
  16. for (int k = 'a'; k < 'a' + l ; k++)
  17. {
  18. for (int m = 'a'; m < 'a' + l; m++)
  19. {
  20. for (int v = 1; v <= n; v++)
  21. {
  22. if (v > i && v > j)
  23. {
  24. Console.Write($"{i}{j}{(char)k}{(char)m}{v} ");
  25. }
  26. }
  27. }
  28. }
  29. }
  30. }
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement