View difference between Paste ID: iYJABj0x and 5FC3Gndp
SHOW: | | - or go back to the newest paste.
1
 int floors = int.Parse(Console.ReadLine());
2
            int count = int.Parse(Console.ReadLine());
3
4
            for (int floor = floors; floor >= 1; floor--)
5
            {
6
                string type = "A";
7
                if (floor % 2 == 0)
8
                {
9
                    type = "O";
10
                }
11
12
                if (floor == floors)
13
                {
14
                    type = "L";
15
                }
16
17
18
                for (int num = 0; num < count; num++)
19
                {
20
                    Console.Write($"{type}{floor}{num} ");
21
22
                }
23
                Console.WriteLine();
24
            }