Advertisement
Guest User

Untitled

a guest
May 1st, 2016
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 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 ConsoleApplication1
  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('_', 2 * n + 1) + new string('.', n + 1));
  15. for (int i = 0; i <= n; i++)
  16. {
  17. if (i < n)
  18. {
  19. Console.WriteLine(new string('.', n - i) + "//" + new string('_', 2 * n - 1 + 2 * i) + "\\\\" + new string('.', n - i));
  20. }
  21. else
  22. {
  23. Console.WriteLine("//" + new string('_', n + i - 3) + "STOP!" + new string('_', n + i - 3) + "\\\\");
  24. }
  25. }
  26. for (int i = n; i > 0; i--)
  27. {
  28. Console.WriteLine(new string('.', n - i) + "\\\\" + new string('_', 2 * n - 1 + 2 * i) + "//" + new string('.', n - i));
  29. }
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement