Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _03.Stop
- {
- class Stop
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int width = 4 * n + 3;
- Console.Write(new string('.', n + 1));
- Console.Write(new string('_', 2 * n + 1));
- Console.WriteLine(new string('.', n + 1));
- int k = 0;
- for (int i = n; i > 0; i--)
- {
- Console.Write(new string('.', n - k));
- Console.Write(new string('/', 2));
- Console.Write(new string('_', (2 * n - 1) + 2 * k));
- Console.Write(new string('\\', 2));
- Console.WriteLine(new string('.', n - k));
- k++;
- }
- Console.Write("//");
- Console.Write(new string('_', (width - 8) / 2));
- Console.Write("STOP!");
- Console.Write(new string('_', (width - 8) / 2));
- Console.WriteLine("\\\\");
- int m = 0;
- for (int i = 0; i < n; i++)
- {
- if (m > 0)
- {
- Console.Write(new string('.', m));
- }
- Console.Write(new string('\\', 2));
- Console.Write(new string('_', 4 * n - 1 - 2 * m));
- Console.Write("//");
- if (m > 0)
- {
- Console.Write(new string('.', m));
- }
- Console.WriteLine();
- m++;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement