Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Sunglasses
- {
- class Program
- {
- static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- for (int i = 0; i < n; i++)
- {
- for (int j = 0; j < n * 2; j++)
- {
- if (i != 0 && i != n - 1 && j != 0 && j != n * 2 - 1)
- {
- Console.Write('/');
- }
- else
- {
- Console.Write('*');
- }
- }
- for (int k = 0; k < n; k++)
- {
- char x = ' ';
- if ((i == n / 2 && n % 2 == 1) || (i + 1 == n / 2 && n % 2 == 0))
- {
- x = '|';
- }
- Console.Write(x);
- }
- for (int j = 0; j < n * 2; j++)
- {
- if (i != 0 && i != n - 1 && j != 0 && j != n * 2 - 1)
- {
- Console.Write('/');
- }
- else
- {
- Console.Write('*');
- }
- }
- Console.WriteLine();
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment