Advertisement
esend3

Untitled

Jul 22nd, 2016
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.47 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace STOP
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             var n = int.Parse(Console.ReadLine());
  14.             int dash = n * 2 - 1;
  15.            
  16.                 Console.Write(new string('.', n+1));
  17.                 Console.Write(new string('_', (n * 2) + 1));
  18.                 Console.WriteLine(new string('.', n + 1));
  19.  
  20.             for (int row = 1; row <=n; row++)
  21.             {
  22.                 Console.Write(new string('.', n + 1 - row));
  23.                 Console.Write(new string('/', 2));
  24.                 Console.Write(new string('_',dash));
  25.                 Console.Write(@"\\");
  26.                 Console.WriteLine(new string('.', n + 1 - row));
  27.                 dash += 2;
  28.             }
  29.             Console.Write(new string('/', 2));
  30.             Console.Write(new string('_', (dash-4 )/2));
  31.             Console.Write("STOP!");
  32.             Console.Write(new string('_', (dash - 4)/2));
  33.             Console.WriteLine(@"\\");
  34.  
  35.             for (int row = 0; row <n ; row++)
  36.             {
  37.                 Console.Write(new string('.', row));
  38.                 Console.Write(@"\\");
  39.                 Console.Write(new string('_', dash));
  40.                 dash -= 2;
  41.                 Console.Write(new string('/', 2));
  42.                 Console.WriteLine(new string('.', row));
  43.             }
  44.         }
  45.     }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement