Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp27
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int max = int.Parse(Console.ReadLine());
- int couter = 0;
- 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++)
- {
- couter++;
- if(x==a && y == b)
- {
- break;
- }
- else if (couter >= max)
- {
- break;
- }
- Console.WriteLine($"{(char)A}{(char)B}{x}{y}{(char)A}{(char)B}");
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment