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 rooms = int.Parse(Console.ReadLine());
- for (int i = floors; i > 0; i--)
- {
- for (int j = 0; j < rooms; j++)
- {
- if (i == floors)
- {
- Console.Write($"L{i}{j} ");
- }
- else if (i % 2 == 0)
- {
- Console.Write($"O{i}{j} ");
- }
- else
- {
- Console.Write($"A{i}{j} ");
- }
- }
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement