Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Draw_Fort
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- var colSize = n / 2;
- var midSize = 2 * n - 2 * colSize - 4;
- Console.WriteLine("/{0}\\{1}/{0}\\",new string('^',colSize),new string('_', midSize));
- for (int rows = 0; rows <= n-3; rows++)
- {
- 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