daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Dec 16th, 2017 71 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 _02
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int n = int.Parse(Console.ReadLine());
  14.  
  15.             Console.WriteLine("/{0}\\{1}/{0}\\", new string('^', n / 2), new string('_', n * 2 - 2 * (n / 2) - 4));
  16.             for (int i = 0; i < n - 3; i++)
  17.             {
  18.                 Console.WriteLine("|{0}{1}{0}|", new string(' ', n / 2), new string(' ', n * 2 - 2 * (n / 2) - 2));
  19.             }
  20.             Console.WriteLine("|{0}{1}{0}|", new string(' ', n / 2 + 1), new string('_', n * 2 - 2 * (n / 2) - 4));
  21.             Console.WriteLine("\\{0}/{1}\\{0}/", new string('_', n / 2), new string(' ', n * 2 - 2 * (n / 2) - 4));
  22.         }
  23.     }
  24. }
RAW Paste Data
Top