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 n = int.Parse(Console.ReadLine());
- int underLine = n * 2 - 1;
- int dots = n;
- string leftDash = "//";
- string rightDash = @"\\";
- Console.WriteLine("{0}{1}{0}", new string('.', n + 1), new string('_', n * 2 + 1));
- for (int i = 0; i < n * 2; i++)
- {
- Console.WriteLine(@"{0}{1}{2}{3}{0}", new string('.', dots), leftDash, new string('_', underLine), rightDash);
- if (i == n - 1)
- {
- Console.WriteLine(@"{0}{1}STOP!{1}{2}", leftDash, new string('_', underLine / 2 - 1), rightDash);
- leftDash = @"\\";
- rightDash = "//";
- }
- if (i >= n)
- {
- underLine -= 2;
- dots++;
- }
- else
- {
- underLine += 2;
- dots--;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement