Advertisement
fbinnzhivko

Untitled

Jan 8th, 2017
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3. namespace ConsoleApplication1
  4. {
  5.     class Program
  6.     {
  7.         static void Main()
  8.         {
  9.             int n = int.Parse(Console.ReadLine());
  10.  
  11.             Console.WriteLine("{0}_/_{0}",new string('.', n - 1));
  12.             Console.WriteLine("/{0}^,^{0}\\", new string('.', n - 2));
  13.             for (int i = 0; i < n-3; i++)
  14.             {
  15.                 Console.WriteLine("|{0}|", new string('.', (n*2+1)-2));
  16.             }
  17.             Console.WriteLine("\\{0}\\_/{0}/", new string('.', n - 2));
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement