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