Guest User

Untitled

a guest
Jun 3rd, 2016
144
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. class Program
  4. {
  5.     static void Main()
  6.     {
  7.         int n = int.Parse(Console.ReadLine());
  8.         Console.WriteLine("{0}{1}{0}", new string('.', n + 1), new string('_', 2 * n + 1));
  9.         int a = 2 * n - 1;
  10.         for (int i = n; i >= 1; i--)
  11.         {
  12.             Console.WriteLine("{0}//{1}\\\\{0}", new string('.', i), new string('_', a));
  13.             a += 2;
  14.         }
  15.         a = n * 2 - 3;
  16.         Console.WriteLine("//{0}STOP!{0}\\\\", new string('_', a));
  17.         a = 4 * n - 1;
  18.         for (int i = 0; i < n; i++)
  19.         {
  20.             Console.WriteLine("{0}\\\\{1}//{0}", new string('.', i), new string('_', a));
  21.             a -= 2;
  22.         }
  23.     }
  24. }
RAW Paste Data