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 Building
- {
- class Program
- {
- static void Main(string[] args)
- {
- int floors = int.Parse(Console.ReadLine());
- int rooms = int.Parse(Console.ReadLine());
- int counter = -1;
- for (int i = floors; i >= 1; i--)
- {
- for (int j = 0; j < rooms; j++)
- {
- if (floors == 1 || i == floors)
- {
- Console.Write($"L{i}{j} ");
- }
- else if (i % 2 == 0)
- {
- Console.Write($"О{i}{j} ");
- }
- else
- {
- Console.Write($"А{i}{j} ");
- }
- }
- Console.WriteLine("");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement