Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Runtime.Remoting.Channels;
- namespace ConsoleApplication
- {
- internal class Program
- {
- public static void Main(string[] args)
- {
- var n = int.Parse(Console.ReadLine());
- Console.WriteLine("{0}/|\\{0}", new string('.', 2 * n - 1));
- Console.WriteLine("{0}\\|/{0}", new string('.', 2 * n - 1));
- for (int i = 0; i < 2 * n; i++)
- {
- Console.WriteLine("{0}*{1}*{1}*{0}", new string('.', (4 * n - 2 - 2 * i) / 2), new string('-', i));
- }
- Console.WriteLine("{0}", new string('*', 4 * n + 1));
- Console.Write("*");
- Console.Write(".");
- for (int i = 0; i < (4*n-1)/2; i++)
- {
- Console.Write("*");
- Console.Write(".");
- }
- Console.WriteLine("*");
- Console.WriteLine("{0}", new string('*', 4 * n + 1));
- }
- }
- }
Add Comment
Please, Sign In to add comment