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