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 XmassHat
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- Console.WriteLine("{0}/|\\{0}", new string('.', (2 * n) - 1));
- Console.WriteLine("{0}\\|/{0}", new string('.', (2 * n) - 1));
- var dotCount = (2 * n) - 1;
- for (int i = 0; i < 2 * n; i++)
- {
- Console.WriteLine("{0}*{1}*{1}*{0}", new string('.', dotCount),
- new string('-', i));
- dotCount--;
- }
- Console.WriteLine("{0}", new string('*', (4 * n) + 1));
- for (int i = 0; i < 2 * n; i++)
- {
- Console.Write("*.");
- }
- Console.WriteLine("*");
- Console.WriteLine("{0}", new string('*', (4 * n) + 1));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment