Advertisement
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 ConsoleApplication2
- {
- class Program
- {
- static void Main(string[] args)
- {
- //////////////// int myLines = 0;/////////////////////////////////////
- int test = 0;
- var n = int.Parse(Console.ReadLine());
- Console.Write("/");
- for (int star = 0; star < n / 2; star++)
- Console.Write("^");
- Console.Write("\\");
- /////////////////////////////////////////////////////////////////////
- Console.Write(new string('_', (2 * n - (2 * (n / 2) + 4))));
- /////////////////////////////////////////////////////////////////////
- Console.Write("/");
- for (int star = 0; star < n / 2; star++)
- Console.Write("^");
- Console.Write("\\");
- Console.WriteLine();
- if (n > 4)
- test = n / 2;
- for (int castle = 0; castle < n - 3; castle++)
- {
- Console.Write("|");
- //////////////////////////////////////////////////////////////////////////////////
- Console.Write(new string(' ', (2 * n - 2)));
- //////////////////////////////////////////////////////////////////////////////////
- Console.Write("|");
- Console.WriteLine();
- }
- for (int lastRow = 0; lastRow < 1; lastRow++)
- {
- Console.Write("|");
- for (int lines = 0; lines < (n / 2) + 1; lines++)
- /////////////////////////////////////////////////////////////////////////////////
- Console.Write(" ");
- Console.Write(new string('_', (2 * n - (2 * (n / 2) + 4))));
- /////////////////////////////////////////////////////////////////////////////////
- for (int lines = 0; lines < (n / 2) + 1; lines++)
- Console.Write(" ");
- Console.Write("|");
- Console.WriteLine();
- }
- Console.Write("\\");
- Console.Write(new string('_', n / 2));
- Console.Write("/");
- ////////////////////////////////////////////////////////////////////////////////////
- Console.Write(new string(' ', (2 * n - (2 * (n / 2) + 4))));
- ////////////////////////////////////////////////////////////////////////////////////
- Console.Write("\\");
- Console.Write(new string('_', n / 2));
- Console.Write("/");
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement