Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int width = 2 * n + 2;
- int spaceLeft = n - 2;
- int spaceMiddle = 2;
- for (int i = 0; i < n - 1; i++)
- {
- Console.WriteLine("{0}/{1}|{2}|{1}\\", new string(' ', spaceLeft), new string(' ', i), new string(' ', spaceMiddle));
- spaceLeft--;
- }
- Console.WriteLine($"{new string('-', width)}");
- int row = n / 2 + 5;
- for (int j = 1; j <= row; j++)
- {
- int space = n / 3;
- if (j == 1)
- {
- Console.WriteLine("|{0}_{1}_{0}|", new string(' ', space), new string(' ', n + 1));
- }
- else if (j == 2)
- {
- Console.WriteLine("|{0}@{1}@{0}|", new string(' ', space), new string(' ', n + 1));
- }
- else if (j == row)
- {
- int spaces = (width - 6) / 2;
- Console.WriteLine("|{0}||||{0}|", new string(' ', spaces));
- }
- else if (j == row - 1)
- {
- int spaces = (width - 6) / 2;
- Console.WriteLine("|{0}/ \\{0}|", new string(' ', spaces));
- }
- else if (j == row - 2)
- {
- int spaces = (width - 4) / 2;
- Console.WriteLine("|{0}oo{0}|", new string(' ', spaces));
- }
- else
- {
- Console.WriteLine($"|{new string(' ', width - 2)}|");
- }
- }
- int symbol = width - 2;
- for (int i = 1; i <= n + 1; i++)
- {
- Console.WriteLine("{0}{1}{2}", new string('\\', i), new string('`', symbol), new string('/', i));
- symbol -= 2;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment