Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
721
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Building
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int floors = int.Parse(Console.ReadLine());
  10. int rooms = int.Parse(Console.ReadLine());
  11.  
  12. for (int i = floors; i >= 1; i--)
  13. {
  14. for (int j = 0; j < rooms; j++)
  15. {
  16. if (i == floors)
  17. {
  18. Console.Write($"L{i}{j}");
  19. }
  20. if (floors % 2 == 0)
  21. {
  22. Console.Write($"O{i}{j}");
  23. }
  24. else
  25. {
  26. Console.Write($"A{i}{j}");
  27. }
  28. }
  29. Console.WriteLine();
  30. }
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement