Guest User

Untitled

a guest
Feb 15th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 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 Blanc
  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 maxPasswords = int.Parse(Console.ReadLine());
  16.  
  17. int count = 0;
  18. int combo = a * b;
  19.  
  20. for (int i = '#'; i <= '7'; i++)
  21. {
  22. for (int j = '@'; j <= '`'; j++)
  23. {
  24. for (int k = 1; k <= a; k++)
  25. {
  26. for (int l = 1; l <= b; l++)
  27. {
  28. Console.Write($"{(char)i}{(char)j}{k}{l}{(char)j}{(char)i}|");
  29. if (j == '`') j = '?';
  30. j++;
  31. if (i == '7') i = '"';
  32. i++;
  33. count++;
  34. if (count == maxPasswords) return;
  35. if (count == combo) return;
  36. }
  37. }
  38. }
  39. }
  40. }
  41. }
  42. }
Add Comment
Please, Sign In to add comment