Guest User

Untitled

a guest
Apr 30th, 2016
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace _05Stop
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int n = int.Parse(Console.ReadLine());
  14. Console.WriteLine(new string('.', n + 1) + new string('_', n * 2 - n / 2 + 4) + new string('.', n + 1));
  15. for (int i = 0; i < n ; i++)
  16. {
  17. Console.WriteLine(new string('.', n - 1 * i) + "//" + new string('_', n * 2 - n / 2 + 2 + i * 2) + "\\\\" +
  18. new string('.', n - 1 * i));
  19. }
  20. Console.WriteLine("//" + new string('_', 2 * n - n / 2 ) + "STOP!" + new string('_', 2 * n - n / 2 ) + "\\\\");
  21.  
  22. for (int i = n - 1; i >= 0; i--)
  23. {
  24. Console.WriteLine(new string('.', n - 1 - 1 * i) + "\\\\" + new string('_', n * 2 - n / 2 + 4+ i * 2) + "//" +
  25. new string('.', n - 1 - 1 * i));
  26. }
  27.  
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment