Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _6_v3
- {
- class Program
- {
- static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- int m = int.Parse(Console.ReadLine());
- char c = 'a';
- switch (m)
- {
- case 1:
- c = 'a';
- break;
- case 2:
- c = 'b';
- break;
- case 3:
- c = 'c';
- break;
- case 4:
- c = 'd';
- break;
- case 5:
- c = 'e';
- break;
- case 6:
- c = 'f';
- break;
- case 7:
- c = 'g';
- break;
- case 8:
- c = 'h';
- break;
- case 9:
- c = 'i';
- break;
- default:
- break;
- }
- for (int a = 1; a <= n; a++)
- {
- for (int s = 1; s <= n; s++)
- {
- for (char i = 'a'; i <= c; i++)
- {
- for (char q = 'a'; q <= c; q++)
- {
- for (int w = 1; w <= n; w++)
- {
- Console.Write($"{a}{s}{i}{q}{w} ");
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement