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