Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Skyscraper
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- for (int row = 0; row < n - 3; row++)
- {
- Console.WriteLine("{0}|{0}", new string(' ', n));
- }
- Console.WriteLine("{0}_|_{0}", new string(' ', n - 1));
- for (int row = 0; row < n - 3; row++)
- {
- Console.WriteLine("{0}|-|{0}", new string(' ', n - 1));
- }
- Console.WriteLine("{0}_|-|_{0}", new string(' ', n - 2));
- for (int row = 0; row < n - 3; row++)
- {
- Console.WriteLine("{0}|***|{0}", new string(' ', n - 2));
- }
- Console.WriteLine(" {0}|***|{0} ", new string('_', n - 3));
- for (int row = 0; row < n * 4 - 1; row++)
- {
- Console.WriteLine(" {0}---{0} ", new string('|', n - 2));
- }
- Console.WriteLine("_{0}---{0}_", new string('|', n - 2));
- for (int row = 0; row < n - 2; row++)
- {
- Console.WriteLine("{0}", new string('|', n * 2 + 1));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement