Advertisement
Guest User

Untitled

a guest
Mar 30th, 2016
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. using System;
  2. using System.Globalization;
  3. using System.Linq;
  4. using System.Collections.Generic;
  5.  
  6.  
  7. namespace Nikola_practice
  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.  
  16. for (int i = 1; i <= n; i++)
  17. {
  18. for (int s = 1; s <= n; s++)
  19. {
  20. for (char d = 'a'; d < 'a'+l; d++)
  21. {
  22. for (char r = 'a'; r < 'a'+l; r++)
  23. {
  24. for (int h =1; h <= n; h++)
  25. {
  26. if (h>s && h>i)
  27. {
  28. Console.Write("{0}{1}{2}{3}{4} ",i , s , d , r , h);
  29. }
  30. }
  31. }
  32. }
  33. }
  34. }
  35. Console.WriteLine();
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement