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