Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int floors = int.Parse(Console.ReadLine());
- int count = int.Parse(Console.ReadLine());
- for (int floor = floors; floor >= 1; floor--)
- {
- string type = "A";
- if (floor % 2 == 0)
- {
- type = "O";
- }
- if (floor == floors)
- {
- type = "L";
- }
- for (int num = 0; num < count; num++)
- {
- Console.Write($"{type}{floor}{num} ");
- }
- Console.WriteLine();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement