Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Building
- {
- class Program
- {
- static void Main(string[] args)
- {
- int floors = int.Parse(Console.ReadLine());
- int apartments = int.Parse(Console.ReadLine());
- for(int i = floors; i >= 1; i--)
- {
- for(int j = 0; j < apartments; j++)
- {
- if(i == floors )
- Console.Write($"L{i}{j} ");
- else
- {
- if(i % 2 == 1)
- Console.Write($"A{i}{j} ");
- else
- Console.Write($"O{i}{j} ");
- }
- }
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement