Advertisement
Guest User

Untitled

a guest
Dec 15th, 2016
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 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 StupidPasswordGenerator
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. var start = int.Parse(Console.ReadLine());
  14. var end = int.Parse(Console.ReadLine());
  15. var maxCombination = int.Parse(Console.ReadLine());
  16. var counter = 0;
  17.  
  18.  
  19. for (int i = 1; i <= start; i++)
  20. {
  21. for (int j = 1; j <= end; j++)
  22. {
  23. counter++;
  24. if (counter > maxCombination)
  25. {
  26. break;
  27. }
  28. Console.Write("<{0}-{1}><{0}-{1}>",i, j);
  29. }
  30. }
  31.  
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement