Advertisement
TheaThea

Untitled

Nov 22nd, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 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 StopSign
  8. {
  9. class StopSign
  10. {
  11. static void Main(string[] args)
  12. {
  13. int n = int.Parse(Console.ReadLine());
  14.  
  15. Console.WriteLine(new string('.', n + 1) + new string('_', n +2) + new string('.', n + 1));
  16.  
  17. for (int i = 0; i < n; i++)
  18. {
  19. Console.WriteLine(new string('.', n - i) + new string('/', 2) + new string('_', n + 2*i) + new string('\\', 2)
  20. +new string('.', n - i));
  21. }
  22.  
  23. var stop = "STOP!";
  24. Console.WriteLine(new string('/', 2) + new string('_', (3*n-stop.Length) / 2) + stop
  25. + new string('_', (3*n-stop.Length) / 2 + (n+1) % 2) + new string ('\\', 2));
  26.  
  27. for (int i = n; i > 0; i--)
  28. {
  29. Console.WriteLine(new string('.', n - i) + new string('\\', 2) + new string('_', n + 2 * i) + new string('/', 2)
  30. + new string('.', n - i));
  31.  
  32.  
  33. }
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement