Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 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 Safe_Passwords_Generator
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int a = int.Parse(Console.ReadLine());
  14. int b = int.Parse(Console.ReadLine());
  15. int max = int.Parse(Console.ReadLine());
  16.  
  17. int min = 1;
  18.  
  19. for (int i = 34; i <= 55; i++)
  20. {
  21. for (int k = 63; k <= 96; k++)
  22. {
  23. for (int d = 1; d <= a; d++)
  24. {
  25. for (int m = 1; m <= b; m++)
  26. {
  27. i++;
  28. k++;
  29.  
  30. if (i > 55)
  31. {
  32. i = 35;
  33. }
  34. if (k > 96)
  35. {
  36. k = 64;
  37. }
  38. Console.Write($"{(char)i}{(char)k}{d}{m}{(char)k}{(char)i}|");
  39. min++;
  40. if (min > max)
  41. {
  42. return;
  43. }
  44. }
  45. }
  46. }
  47. }
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement