SHARE
TWEET

Untitled

a guest Dec 16th, 2017 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace zadachka
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             var n = int.Parse(Console.ReadLine());
  14.             var colsize = n / 2;
  15.             var size = n * 2 - 2 * colsize - 4;
  16.  
  17.             Console.WriteLine("/{0}\\{1}/{0}\\",
  18.                 new string('^', colsize),
  19.                 new string('_', size));
  20.  
  21.             for (int i = 1; i <= n - 3; i++)
  22.             {
  23.                 Console.WriteLine("|{0}|", new string(' ', 2 * n - 2));
  24.             }
  25.  
  26.             Console.WriteLine("|{0}{1}{0}|",
  27.                 new string(' ', colsize + 1),
  28.                 new string('_', size));
  29.  
  30.             Console.WriteLine("\\{0}/{1}\\{0}/",
  31.                 new string('_', colsize),
  32.                 new string(' ', size));
  33.  
  34.  
  35.         }
  36.     }
  37. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top