Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class DrawFort
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int colSize = n / 2;
- int midSize = 2 * n - 2 * colSize - 4;
- Console.WriteLine("/{0}\\{1}/{0}\\", new string('^', colSize), new string('_', midSize));
- for (int row = 1; row <= n - 3; row++)
- Console.WriteLine("|{0}|", new string(' ', 2 * n - 2));
- Console.WriteLine("|{0}{1}{0}|", new string(' ', colSize + 1), new string('_', midSize));
- Console.WriteLine("\\{0}/{1}\\{0}/", new string('_', colSize), new string(' ', midSize));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment