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 bottleBottom = 2 * n;
- int bottleTop = n + 1;
- int outside = (bottleBottom - bottleTop) / 2;
- int inside = bottleTop - 2;
- Console.WriteLine("{0}{1}",
- new string(' ', outside),
- new string('*', bottleTop));
- for (int i = 0; i < n / 2 + 1; i++)
- {
- Console.WriteLine("{0}*{1}*",
- new string(' ', outside),
- new string(' ', inside));
- }
- for (int i = 0; i < n / 2 - 1; i++)
- {
- inside += 2;
- outside--;
- Console.WriteLine("{0}*{1}*",
- new string(' ', outside),
- new string(' ', inside));
- }
- for (int i = 0; i < n; i++)
- {
- Console.WriteLine("*{0}*",
- new string('.', bottleBottom - 2));
- }
- for (int i = 0; i < n; i++)
- {
- Console.WriteLine("*{0}*",
- new string('@', bottleBottom - 2));
- }
- Console.WriteLine(new string('*', bottleBottom));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement