Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace christmasHat
- {
- class Program
- {
- static void Main()
- {
- var n = int.Parse(Console.ReadLine());
- var width = 4 * n + 1;
- var dots = (width - 3) / 2;
- Console.WriteLine("{0}/|\\{0}", new string('.', dots));
- Console.WriteLine("{0}\\|/{0}", new string('.', dots));
- for (int i = 0; i < 2 * n; i++)
- {
- Console.WriteLine("{0}*{1}*{1}*{0}", new string('.', dots--),new string('-', i));
- }
- Console.WriteLine("{0}", new string('*', width));
- for (int i = 0; i < width; i++) //TAZI CHAST , PREDPOSLEDNIQ RED !!
- {
- Console.Write(i % 2 == 0 ? '*' : '.');
- }
- Console.WriteLine();
- Console.WriteLine("{0}", new string('*', width));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement