Advertisement
Guest User

Untitled

a guest
Jun 11th, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. using System;
  2. class Program
  3. {
  4. static void Main()
  5. {
  6. int n = int.Parse(Console.ReadLine());
  7. int tochki = (n + (n - 1)) * 3;
  8. int shtagove = 1;
  9. int broiach = 0;
  10. for (int i = 2 * n; i > 0; i--)
  11. {
  12. Console.Write(new string('.', tochki));
  13. Console.Write(new string('#', shtagove));
  14. Console.Write(new string('.', tochki));
  15. tochki -= 3;
  16. shtagove += 6;
  17. Console.WriteLine();
  18. broiach++;
  19. }
  20. shtagove -= 12;
  21. tochki = 2;
  22. for (int c = 0; c < n - 2; c++)
  23. {
  24. Console.Write("|");
  25. Console.Write(new string('.', tochki));
  26. tochki++;
  27. Console.Write(new string('#', shtagove));
  28. shtagove -= 6;
  29. Console.Write(new string('.', tochki));
  30. tochki += 2;
  31. Console.WriteLine();
  32. }
  33. //shtagove += 6;
  34. for (int i = 0; i < n-1; i++)
  35. {
  36. Console.Write("|");
  37. Console.Write(new string('.', tochki));
  38. Console.Write(new string('#', shtagove));
  39. Console.Write(new string('.', tochki + 1));
  40. Console.WriteLine();
  41. }
  42. Console.Write("@");
  43. Console.Write(new string('.', tochki));
  44. Console.Write(new string('#', shtagove));
  45. Console.Write(new string('.', tochki + 1));
  46.  
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement