Advertisement
Atanasov_88

sunglasses

Jul 9th, 2015
536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.82 KB | None | 0 0
  1. using System;
  2.  
  3.     class Program
  4.     {
  5.         static void Main()
  6.         {
  7.             int n = int.Parse(Console.ReadLine());
  8.  
  9.             Console.WriteLine("{0}{1}{0}", new string ('*', n*2), new string (' ', n));
  10.  
  11.            
  12.             for (int i = 0; i < n / 2 - 1; i++)
  13.             {
  14.                 Console.WriteLine("*{0}*{1}*{0}*", new string('/',(n*2) - 2), new string (' ', n));
  15.    
  16.             }
  17.  
  18.             Console.WriteLine("*{0}*{1}*{0}*", new string('/', ((n * 2) - 2)), new string('|', n));
  19.  
  20.             for (int i = 0; i < n / 2 - 1; i++)
  21.             {
  22.                 Console.WriteLine("*{0}*{1}*{0}*", new string('/', ((n * 2) - 2)), new string(' ', n));
  23.  
  24.             }
  25.            
  26.             Console.WriteLine("{0}{1}{0}", new string('*', n * 2), new string(' ', n));
  27.         }
  28.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement