Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Mask
- {
- class Program
- {
- static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- int colNum = (2 * n) + 2;
- //hat:
- int spaceCount = (colNum - 4) / 2;
- string spaceOne = string.Empty;
- string spaceTwo = string.Empty;
- for (int i = 1; i < n; i++)
- {
- spaceCount--;
- spaceOne = new string(' ', spaceCount);
- spaceTwo = new string(' ', i - 1);
- Console.WriteLine($"{spaceOne}/{spaceTwo}| |{spaceTwo}\\");
- }
- Console.WriteLine(new string('-', colNum));
- //head:
- spaceTwo = new string(' ', n + 1);
- spaceOne = new string(' ', (colNum - 4 - n - 1) / 2);
- Console.WriteLine($"|{spaceOne}_{spaceTwo}_{spaceOne}|");
- Console.WriteLine($"|{spaceOne}@{spaceTwo}@{spaceOne}|");
- for (int i = 1; i <= (n - 1) / 2; i++)
- {
- Console.WriteLine($"|{new string(' ', colNum - 2)}|");
- }
- spaceCount = (colNum - 4) / 2;
- spaceOne = new string(' ', spaceCount);
- Console.WriteLine($"|{spaceOne}OO{spaceOne}|");
- spaceCount--;
- spaceOne = new string(' ', spaceCount);
- Console.WriteLine($"|{spaceOne}/ \\{spaceOne}|");
- Console.WriteLine($"|{spaceOne}||||{spaceOne}|");
- //beard:
- int strangeCount = colNum;
- string strange = string.Empty;
- int leftCount = 0;
- int rightCount = 0;
- string left = string.Empty;
- string right = string.Empty;
- for (int i = 1; i <= n; i++)
- {
- leftCount++;
- rightCount++;
- strangeCount-=2;
- strange = new string('`', strangeCount);
- left = new string('\\', leftCount);
- right = new string('/', rightCount);
- Console.WriteLine($"{left}{strange}{right}");
- }
- leftCount++;
- rightCount++;
- left = new string('\\', leftCount);
- right = new string('/', rightCount);
- Console.WriteLine($"{left}{right}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement