Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- int tochki = (n + (n - 1)) * 3;
- int shtagove = 1;
- int broiach = 0;
- for (int i = 2 * n; i > 0; i--)
- {
- Console.Write(new string('.', tochki));
- Console.Write(new string('#', shtagove));
- Console.Write(new string('.', tochki));
- tochki -= 3;
- shtagove += 6;
- Console.WriteLine();
- broiach++;
- }
- shtagove -= 12;
- tochki = 2;
- for (int c = 0; c < n - 2; c++)
- {
- Console.Write("|");
- Console.Write(new string('.', tochki));
- tochki++;
- Console.Write(new string('#', shtagove));
- shtagove -= 6;
- Console.Write(new string('.', tochki));
- tochki += 2;
- Console.WriteLine();
- }
- //shtagove += 6;
- for (int i = 0; i < n-1; i++)
- {
- Console.Write("|");
- Console.Write(new string('.', tochki));
- Console.Write(new string('#', shtagove));
- Console.Write(new string('.', tochki + 1));
- Console.WriteLine();
- }
- Console.Write("@");
- Console.Write(new string('.', tochki));
- Console.Write(new string('#', shtagove));
- Console.Write(new string('.', tochki + 1));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement