Advertisement
Guest User

Untitled

a guest
Nov 29th, 2021
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement