Guest User

Untitled

a guest
Jul 6th, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. using System;
  2. class DrawFort
  3. {
  4. static void Main(string[] args)
  5. {
  6. int n = int.Parse(Console.ReadLine());
  7. int colSize = n / 2;
  8. int midSize = 2 * n - 2 * colSize - 4;
  9. Console.WriteLine("/{0}\\{1}/{0}\\", new string('^', colSize), new string('_', midSize));
  10.  
  11. for (int row = 1; row <= n - 3; row++)
  12.  
  13. Console.WriteLine("|{0}|", new string(' ', 2 * n - 2));
  14.  
  15. Console.WriteLine("|{0}{1}{0}|", new string(' ', colSize + 1), new string('_', midSize));
  16. Console.WriteLine("\\{0}/{1}\\{0}/", new string('_', colSize), new string(' ', midSize));
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment