Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Globalization;
- using System.Linq;
- using System.Collections.Generic;
- namespace Nikola_practice
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int l = int.Parse(Console.ReadLine());
- for (int i = 1; i <= n; i++)
- {
- for (int s = 1; s <= n; s++)
- {
- for (char d = 'a'; d < 'a'+l; d++)
- {
- for (char r = 'a'; r < 'a'+l; r++)
- {
- for (int h =1; h <= n; h++)
- {
- if (h>s && h>i)
- {
- Console.Write("{0}{1}{2}{3}{4} ",i , s , d , r , h);
- }
- }
- }
- }
- }
- }
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement