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 Stop
- {
- class Program
- {
- static void Main(string[] args)
- {
- int num = int.Parse(Console.ReadLine());
- string left = "";
- string right = "";
- string center = "";
- int ia = 0;
- for (int row = 1; row <= num + 2; row++)
- {
- if (row == 1)
- {
- left = new string('.', num+2 - row);
- center = new string('_', (( 2*num)+1));
- right = new string('.', num+2 - row);
- }
- else
- {
- if (row == num+2)
- {
- left = new string('.', num + 2 - row);
- left = left + "/";
- right = new string('.', num + 2 - row);
- right = "\\" + right;
- //center = new string('_', (2 * num - 1) + ia);
- int stop = (2 * num - 3) + ia - 4;
- int stop_del = stop / 2;
- string center1 = new string('_', stop_del);
- center = "/" + center1+"STOP!"+center1 + "\\";
- //center = "/" + center + "\\";
- }
- else
- {
- left = new string('.', num + 2 - row);
- left = left + "/";
- right = new string('.', num + 2 - row);
- right = "\\" + right;
- center = new string('_', (2 * num - 3) + ia);
- center = "/" + center + "\\";
- }
- }
- ia = ia + 2;
- Console.Write(left);
- Console.Write(center);
- Console.Write(right);
- Console.WriteLine();
- }
- ia = ia - 6;
- for (int row_next = num; row_next >= 1; row_next--)
- {
- left = new string('.', num - row_next);
- left = left + "\\";
- right = new string('.', num - row_next);
- right = "/" + right;
- center = new string('_', 2 * row_next + ia+1);
- center = "\\" + center + "/";
- Console.Write(left);
- Console.Write(center);
- Console.Write(right);
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement