Advertisement
Guest User

Untitled

a guest
Apr 25th, 2016
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 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 _03Strawberyy
  8. {
  9. class Strawberry
  10. {
  11. static void Main(string[] args)
  12. {
  13. int n = int.Parse(Console.ReadLine());
  14. for (int i = 0; i < n / 2; i++)
  15. {
  16. Console.WriteLine(new string('-', i * 2) + '\\' + new string('-', n - 2 * i) + '|' +
  17. new string('-', n - 2 * i) + '/' + new string('-', i * 2));
  18. }
  19. Console.WriteLine(new string('-', n) + '#' + '.' + '#' + new string('-', n));
  20. for (int i = 0; i < n / 2; i++)
  21. {
  22. Console.WriteLine(new string('-', n - 2 * i - 2) + '#' + new string('.', 5 + 4 * i) + '#' + new string('-', n - 2 * i - 2));
  23. }
  24. Console.WriteLine('#'+ new string('.', 2 * n + 1) + '#');
  25. for (int i = n - 1; i >=0; i--)
  26. {
  27. Console.WriteLine(new string('-', n - i) + '#' + new string('.', 2 * i + 1) + '#' + new string('-', n - i));
  28. }
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement