Advertisement
AlexJC

Stupid Password Generator

Aug 27th, 2016
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 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 Stupid_Password_Generator
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int n = int.Parse(Console.ReadLine());
  14. int l = int.Parse(Console.ReadLine());
  15. int c = 97;
  16. int d = 97;
  17. int bigger = 1;
  18. for (int i = 1; i < n; i++)
  19. {
  20. for (int j = 1; j < n; j++)
  21. {
  22. for (int k = 0; k < l; k++)
  23. {
  24. for (int m = 0; m < l; m++)
  25. {
  26. if (i > j)
  27. {
  28. bigger = i + 1;
  29. }
  30. else
  31. {
  32. bigger = j + 1;
  33. }
  34. for (int o = bigger; o <= n; o++)
  35. {
  36. Console.Write("{0}{1}", i, j);
  37. string simbol3 = Char.ConvertFromUtf32(c + k);
  38. string simbol4 = Char.ConvertFromUtf32(d + m);
  39. Console.Write("{0}{1}", simbol3, simbol4);
  40. Console.Write("{0} ", o);
  41. }
  42. }
  43. }
  44. }
  45. }
  46. }
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement