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