Advertisement
Guest User

Untitled

a guest
Dec 16th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1.  
  2. using System;
  3. namespace fort
  4. {
  5. class fort
  6. {
  7. static void Main(string[] args)
  8. {
  9. int N = int.Parse(Console.ReadLine());
  10. int InsideWidth = N / 2;
  11. int Space = 2 * N - 2 * InsideWidth - 4;
  12.  
  13. Console.WriteLine(new string('/', 1) + new string('^', InsideWidth) + new string('\\', 1) + new string('_', Space) + new string('/', 1) + new string('^', InsideWidth) + new string('\\', 1));
  14.  
  15. for (int Row = 1; Row <= N - 3; Row++)
  16. {
  17. Console.WriteLine(new string('|', 1) + new string(' ', N * 2 - 2) + new string('|', 1));
  18. }
  19.  
  20. Console.WriteLine(new string('|', 1) + new string(' ', InsideWidth + 1) + new string('_', Space) + new string(' ', InsideWidth + 1) + new string('|', 1));
  21.  
  22. Console.WriteLine(new string('\\', 1) + new string('_', InsideWidth) + new string('/', 1) + new string(' ', Space) + new string('\\', 1) + new string('_', InsideWidth) + new string('/', 1));
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement