Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Калинка
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int width = 3 * n + 6;
- int heght = 3 * n + 1;
- int spacesCount = width / 3 -2;
- string spaces = new string(' ', spacesCount);
- for (int i = 0; i < n; i++)
- {
- Console.WriteLine($"{spaces}~ ~ ~");
- }
- int equalsSignCount = width - 1 ;
- string equalsSign = new string('=', equalsSignCount);
- Console.WriteLine($"{equalsSign}");
- for (int i = 0; i < n -2; i++)
- {
- if (i == n / 2 - 1)
- {
- Console.Write("|");
- for (int j = 0; j < n; j++)
- {
- Console.Write("~");
- }
- Console.Write("JAVA");
- for (int j = 0; j < n; j++)
- {
- Console.Write("~");
- }
- Console.Write("|");
- for (int s = 0; s < n - 1; s++)
- {
- Console.Write(" ");
- }
- Console.Write("|");
- Console.WriteLine();
- }
- else
- {
- Console.Write("|");
- for (int j = 0; j < n * 2 + 4; j++)
- {
- Console.Write("~");
- }
- Console.Write("|");
- for (int s = 0; s < n - 1; s++)
- {
- Console.Write(" ");
- }
- Console.Write("|");
- Console.WriteLine();
- }
- }
- Console.WriteLine($"{equalsSign}");
- for (int i = 1; i <= n; i++)
- {
- for (int s = 0 - i; s < -1 ; s++)
- {
- Console.Write(" ");
- }
- Console.Write("\\");
- for (int r = 0 + i; r < n; r++)
- {
- Console.Write("@");
- }
- Console.Write ("@@@@@@");
- for (int r = 0 + i; r < n; r++)
- {
- Console.Write("@");
- }
- Console.Write("/");
- Console.WriteLine();
- }
- int equalsSignCountLast = equalsSignCount - n + 1;
- string equalsSignLast = new string('=', equalsSignCountLast);
- Console.WriteLine($"{equalsSignLast}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment