Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace КоледнаШапка
- {
- class Program
- {
- static void Main(string[] args)
- {
- var n = int.Parse(Console.ReadLine());
- int widht = 4 * n + 1;
- int hight = 2 * n + 5;
- int dotTopCount = (widht - 3) / 2;
- string dotTop = new string('.', dotTopCount);
- Console.WriteLine($"{dotTop}/|\\{dotTop}");
- Console.WriteLine($"{dotTop}\\|/{dotTop}");
- // ''''''''
- for (int row = 0; row < n * 2; row++)
- {
- for (int i = 0 + row ; i < (widht - 3) / 2; i++)
- {
- Console.Write(".");
- }
- Console.Write("*");
- for (int i = 0 - row; i < 0; i++)
- {
- Console.Write("-");
- }
- Console.Write("*");
- for (int i = 0 - row; i < 0; i++)
- {
- Console.Write("-");
- }
- Console.Write("*");
- for (int i = 0 + row; i < (widht - 3) / 2; i++)
- {
- Console.Write(".");
- }
- Console.WriteLine();
- }
- // ''''''''
- int dotDownCount = widht;
- string dotDown = new string('*', dotDownCount);
- Console.WriteLine($"{dotDown}");
- for (int i = 0; i < (widht - 1) / 2; i++)
- {
- Console.Write("*.");
- }
- Console.Write("*");
- Console.WriteLine();
- Console.WriteLine($"{dotDown}");
- }
- }
- }
- // 4 ......./|\.......
- // .......\|/.......
- // .......***.......
- // ......*-*-*......
- // .....*--*--*.....
- // ....*---*---*....
- // ...*----*----*...
- // ..*-----*-----*..
- // .*------*------*.
- // *-------*-------*
- // *****************
- // *.*.*.*.*.*.*.*.*
- // *****************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement