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 NewCoin
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int middle = 0;
- if (n % 2 == 0) middle = n - 1;
- else middle = n - 2;
- //Top part
- //----------------------------------------------------------------
- for (int i = 0; i < n; i++)
- {
- Console.WriteLine($"{new string(' ', 2 * (n - i))}" +
- $"{new string('\\', n - i)}" +
- $"{new string('-', 6 * i)}" +
- $"{new string('/', n - i)}");
- }
- //----------------------------------------------------------------
- //Middle
- //----------------------------------------------------------------
- for (int i = 1; i <= middle; i++)
- {
- if (middle / 2 + 1 == i)
- {
- Console.WriteLine($"|" +
- $"{new string('~', n - 1)}" +
- $"{new string('/', n + (middle / 2) + 1)}" +
- $" ESTD " +
- $"{new string('\\', n + (middle / 2) + 1)}" +
- $"{new string('~', n - 1)}" +
- $"|");
- }
- else
- {
- Console.WriteLine($"|" +
- $"{new string('-', n - 1)}" +
- $"{new string('#', n * 4)}" +
- $"{new string('-', n - 1)}" +
- $"|");
- }
- }
- //----------------------------------------------------------------
- //Bottom Part
- //----------------------------------------------------------------
- for (int i = n - 1; i >= 0; i--)
- {
- Console.WriteLine($"{new string(' ', 2 * (n - i))}" +
- $"{new string('/', n - i)}" +
- $"{new string('-', 6 * i)}" +
- $"{new string('\\', n - i)}");
- }
- //----------------------------------------------------------------
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement