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 Practice
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int space = n;
- int downSlash = n - 2;
- int count = n - 2;
- for (int i = 1; i <= count; i++)
- {
- Console.WriteLine("{0}||{1}||{0}", new string(' ',space), new string('_',downSlash));
- }
- space = n - 1;
- int innerSpace = n;
- Console.WriteLine("{0}//{1}\\\\{0}", new string(' ', space), new string(' ', innerSpace));
- count = n - 4;
- space = n - 2;
- innerSpace = n + 2;
- for (int i = 1; i <= count; i++)
- {
- if(i == (n - 3) / 2)
- {
- Console.WriteLine("{0}||{1}||]",new string(' ',space), new string(' ',innerSpace));
- }
- else
- {
- Console.WriteLine("{0}||{1}||", new string(' ', space), new string(' ', innerSpace));
- }
- }
- space++;
- innerSpace-=2;
- Console.WriteLine("{0}\\\\{1}//{0}", new string(' ', space), new string(' ', innerSpace));
- space = n;
- downSlash = n - 2;
- count = n - 2;
- for (int i = 1; i <= count; i++)
- {
- Console.WriteLine("{0}||{1}||{0}", new string(' ', space), new string('_', downSlash));
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment