Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace GARAGE
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int p = 2;
- Console.WriteLine(new string('|', 2 * n + 2));
- Console.WriteLine(new string('*', 2 * n + 2));
- Console.Write(new string('|', ((2 * n + 2 - 6) / 2)));
- Console.Write("GARAGE");
- Console.WriteLine(new string('|', ((2 * n + 2 - 6) / 2)));
- for (int i = 0; i < n + 2 - 6; i++)
- {
- Console.WriteLine(new string('|', 2 * n + 2));
- }
- if (n == 3)
- p = 1;
- for (int i = 0; i < p; i++)
- {
- Console.Write('|');
- Console.Write(new string('/', (2 * n + 2 - 8) / 2));
- Console.Write('|');
- Console.Write(new string(' ', 4));
- Console.Write('|');
- Console.Write(new string('/', (2 * n + 2 - 8) / 2));
- Console.WriteLine('|');
- }
- Console.Write(new string(' ', (2 * n + 2 - 8) / 2 + 1));
- Console.WriteLine(new string('/', 5));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment