Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int max = int.Parse(Console.ReadLine());
- int counter = 0;
- string combination = string.Empty;
- for (int A = 35; A <= 55; A++)
- {
- for (int B = 64; B <= 96; B++)
- {
- for (int x = 1; x <= a; x++)
- {
- for (int y = 1; y <= b; y++)
- {
- combination = $"{(char)A}{(char)B}{x}{y}{(char)B}{(char)A}|";
- if (counter < max)
- {
- Console.Write(combination);
- }
- A++;
- B++;
- if (A > 55)
- {
- A = 35;
- }
- else if (B > 96)
- {
- B = 64;
- }
- counter++;
- //combination = string.Empty;
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement